fix for option WITH_CXX_GUARDEDALLOC with msvc
authorCampbell Barton <ideasman42@gmail.com>
Tue, 24 May 2011 06:44:39 +0000 (06:44 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 24 May 2011 06:44:39 +0000 (06:44 +0000)
CMakeLists.txt

index a8fc301906f9a93266a8d2311210a8a078841eab..0f140d537d1f6ce2da6376983e91ba436b1eed56 100644 (file)
@@ -1132,9 +1132,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PLATFORM_CFLAGS} ${CXX_WARNINGS}")
 #-------------------------------------------------------------------------------
 # Global Defines
 
-# better not define flags here but this is a debugging option thats off by default.
+# better not set includes here but this debugging option is off by default.
 if(WITH_CXX_GUARDEDALLOC)
-       set(CMAKE_CXX_FLAGS " -DWITH_CXX_GUARDEDALLOC -I${CMAKE_SOURCE_DIR}/intern/guardedalloc ${CMAKE_CXX_FLAGS}")
+       include_directories(${CMAKE_SOURCE_DIR}/intern/guardedalloc)
 endif()
 
 if(WITH_ASSERT_ABORT)