Bläddra i källkod

Fix memory backtrace option (Linux-only) getting enabled on non-Unix platform in debug build.

Lasse Öörni 8 år sedan
förälder
incheckning
50dd3fd3c9
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Source/ThirdParty/ik/CMakeLists.txt

+ 1 - 1
Source/ThirdParty/ik/CMakeLists.txt

@@ -31,7 +31,7 @@ if (CMAKE_BUILD_TYPE STREQUAL Debug)
     set (DEFAULT_MEMORY_DEBUGGING 1)
 endif ()
 option (IK_MEMORY_DEBUGGING "Global switch for memory options. Keep track of the number of allocations and de-allocations and prints a report when the program shuts down" ${DEFAULT_MEMORY_DEBUGGING})
-cmake_dependent_option (IK_MEMORY_BACKTRACE "Generate backtraces for every malloc(), making it easy to track down memory leaks" "${DEFAULT_MEMORY_DEBUGGING}" "IK_MEMORY_DEBUGGING AND NOT WEB" FALSE)
+cmake_dependent_option (IK_MEMORY_BACKTRACE "Generate backtraces for every malloc(), making it easy to track down memory leaks" "${DEFAULT_MEMORY_DEBUGGING}" "IK_MEMORY_DEBUGGING AND UNIX AND NOT WEB" FALSE)
 
 # Need to set IK_PLATFORM for dllimport/dllexport
 if (WIN32)