2020-05-27 05:15:46 +02:00
|
|
|
if (MSVC)
|
|
|
|
# Visual Studio only sets _DEBUG
|
2020-04-22 11:04:19 +02:00
|
|
|
if (CMAKE_BUILD_TYPE MATCHES "Debug")
|
2020-05-27 05:15:46 +02:00
|
|
|
add_definitions(-DDEBUG)
|
2015-02-13 19:00:14 +01:00
|
|
|
endif()
|
2020-05-27 05:15:46 +02:00
|
|
|
|
|
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (UNIX)
|
|
|
|
# TODO: check if this can be enabled again for Clang - also done in Makefile
|
|
|
|
if (CMAKE_BUILD_TYPE MATCHES "Debug" AND NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
|
|
|
|
add_definitions(-D_GLIBCXX_DEBUG)
|
2015-02-13 19:00:14 +01:00
|
|
|
endif()
|
2019-08-17 10:53:07 +02:00
|
|
|
add_definitions(-DFILESDIR="${FILESDIR}")
|
2015-02-13 19:00:14 +01:00
|
|
|
endif()
|
2020-05-27 05:15:46 +02:00
|
|
|
|
|
|
|
if (HAVE_RULES)
|
|
|
|
add_definitions(-DHAVE_RULES -DTIXML_USE_STL)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (USE_Z3)
|
|
|
|
add_definitions(-DUSE_Z3)
|
2020-05-23 17:42:56 +02:00
|
|
|
endif()
|
2020-05-27 05:15:46 +02:00
|
|
|
|
2020-03-01 17:11:20 +01:00
|
|
|
if (ENABLE_CHECK_INTERNAL)
|
|
|
|
add_definitions(-DCHECK_INTERNAL)
|
|
|
|
endif()
|