Skip to content

Instantly share code, notes, and snippets.

@jef-n
Created August 13, 2012 12:50
Show Gist options
  • Save jef-n/3340337 to your computer and use it in GitHub Desktop.
Save jef-n/3340337 to your computer and use it in GitHub Desktop.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b96a2ea..6d0f2ff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -291,6 +291,11 @@ IF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
ADD_DEFINITIONS(-DQGISDEBUG=1)
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
+IF(MSVC)
+ SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -DQGISDEBUG=1")
+ SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DQGISDEBUG=1")
+ENDIF(MSVC)
+
#############################################################
# platform specific stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment