summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-12 17:04:08 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-12 17:04:08 +0200
commit554e6da35c973004f7b8617a99b9eb1773bc2442 (patch)
tree22b0f30a70306037d0b27d43d20a68c44aed5e63 /cmake
parenteda47922d9bd6d10e4e2fb3d3191edfaa126aef5 (diff)
cmake: ensure M_PI and friends are defined
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-platform.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake
index 7357a987..75f9bff7 100644
--- a/cmake/opentrack-platform.cmake
+++ b/cmake/opentrack-platform.cmake
@@ -9,9 +9,10 @@ endif()
if(WIN32)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_RC_COMPILER_INIT i686-w64-mingw32-windres)
- SET(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> --use-temp-file -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
+ set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> --use-temp-file -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
endif()
- ENABLE_LANGUAGE(RC)
+ enable_language(RC)
+ add_definitions(-D_USE_MATH_DEFINES=1)
endif(WIN32)
if(opentrack-install-rpath)
@@ -19,6 +20,7 @@ if(opentrack-install-rpath)
else()
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}")
endif()
+
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_SKIP_INSTALL_RPATH FALSE)