cppcheck/cmake/compilerDefinitions.cmake

16 lines
384 B
CMake
Raw Normal View History

2015-02-13 19:00:14 +01:00
if (UNIX)
if (CMAKE_BUILD_TYPE MATCHES "Debug")
2015-02-13 19:00:14 +01:00
add_definitions(-D_GLIBCXX_DEBUG)
endif()
if (HAVE_RULES)
add_definitions(-DHAVE_RULES -DTIXML_USE_STL)
endif()
add_definitions(-DFILESDIR="${FILESDIR}")
2015-02-13 19:00:14 +01:00
endif()
if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
if (ENABLE_CHECK_INTERNAL)
add_definitions(-DCHECK_INTERNAL)
endif()