summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-build.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-10 12:45:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-10 12:45:28 +0200
commit1a4ad209341b7ef2364f7b6bc8195a4ac93838d0 (patch)
tree43f6ac1d9d6fce823c4ab850364fe8a2a1e7a1cd /cmake/opentrack-build.cmake
parentb67d81563718bd1f773f9e586b04b285e45b1208 (diff)
cmake: don't force cache variables
Diffstat (limited to 'cmake/opentrack-build.cmake')
-rw-r--r--cmake/opentrack-build.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/opentrack-build.cmake b/cmake/opentrack-build.cmake
index 4fe8fde0..ab2bb3b8 100644
--- a/cmake/opentrack-build.cmake
+++ b/cmake/opentrack-build.cmake
@@ -8,13 +8,15 @@
# PERFORMANCE OF THIS SOFTWARE.
if(NOT CMAKE_INSTALL_PREFIX)
- set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "" FORCE)
+ set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install")
endif()
set(CMAKE_BUILD_TYPE_INIT "RELEASE")
if(APPLE)
- set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "" FORCE)
+ if(NOT CMAKE_OSX_ARCHITECTURES)
+ set(CMAKE_OSX_ARCHITECTURES "x86_64")
+ endif()
endif()
function(cleanup_build_dir)