Skip to content

Commit bef2458

Browse files
committed
enable debug output for windows Debug and RelWithDebInfo builds (follow up 511e89c)
1 parent 981ea28 commit bef2458

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ IF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
286286
ADD_DEFINITIONS(-DQGISDEBUG=1)
287287
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
288288

289+
IF(MSVC)
290+
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -DQGISDEBUG=1")
291+
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DQGISDEBUG=1")
292+
ENDIF(MSVC)
293+
289294
#############################################################
290295
# platform specific stuff
291296

0 commit comments

Comments
 (0)