summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-build.cmake
diff options
context:
space:
mode:
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)