From 554e6da35c973004f7b8617a99b9eb1773bc2442 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 12 Aug 2016 17:04:08 +0200 Subject: cmake: ensure M_PI and friends are defined --- cmake/opentrack-platform.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmake') 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 " --use-temp-file -O coff -i -o ") + set(CMAKE_RC_COMPILE_OBJECT " --use-temp-file -O coff -i -o ") 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) -- cgit v1.2.3