Explorar o código

Merge pull request #335 from SirR4T/SirR4T-add-DEBUG-macro-in-CMakeLists_txt

Define the `DEBUG` macro in CMakeLists.txt
Lee Thomason %!s(int64=10) %!d(string=hai) anos
pai
achega
ff53d7172c
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      CMakeLists.txt

+ 4 - 2
CMakeLists.txt

@@ -17,8 +17,8 @@ include(GNUInstallDirs)
 ################################
 ################################
 # set lib version here
 # set lib version here
 
 
-set(GENERIC_LIB_VERSION "3.0.0")
-set(GENERIC_LIB_SOVERSION "3")
+set(GENERIC_LIB_VERSION "3.0.0")
+set(GENERIC_LIB_SOVERSION "3")
 
 
 
 
 ################################
 ################################
@@ -51,6 +51,8 @@ if(MSVC)
 	add_definitions(-D_CRT_SECURE_NO_WARNINGS)
 	add_definitions(-D_CRT_SECURE_NO_WARNINGS)
 endif(MSVC)
 endif(MSVC)
 
 
+set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")
+
 ################################
 ################################
 # Add targets
 # Add targets
 option(BUILD_SHARED_LIBS "build shared or static libraries" ON)
 option(BUILD_SHARED_LIBS "build shared or static libraries" ON)