summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-platform.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-04-03 12:28:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-04-05 03:24:01 +0200
commit9918192f0943a61e9970bad9f1a02ffbe3af8591 (patch)
tree7370ea0229100f54755d9f247e0e98e3ab9cab79 /cmake/opentrack-platform.cmake
parentc0165f8b48852a1aca782d606ba4f1ea48eee6ba (diff)
cmake: cleanup
- OTR_MODULE_NAME now unused - _USE_MATH_DEFINES only needed for MSVC - old cruft in i18n support
Diffstat (limited to 'cmake/opentrack-platform.cmake')
-rw-r--r--cmake/opentrack-platform.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake
index 3276b832..810544f4 100644
--- a/cmake/opentrack-platform.cmake
+++ b/cmake/opentrack-platform.cmake
@@ -60,6 +60,8 @@ if(MSVC)
add_definitions(-D_ITERATOR_DEBUG_LEVEL=0)
add_definitions(-D_HAS_EXCEPTIONS=0)
add_definitions(-D_SILENCE_CXX17_NEGATORS_DEPRECATION_WARNING -D_SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING)
+
+ add_definitions(-D_USE_MATH_DEFINES=1)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Zi")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Zi")
@@ -94,7 +96,6 @@ if(WIN32)
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> --use-temp-file -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
endif()
enable_language(RC)
- add_definitions(-D_USE_MATH_DEFINES=1)
endif(WIN32)
if(opentrack-install-rpath)