Allow skipping the bundle step after install on OSX
authorkoda
Tue, 02 Jun 2015 18:37:40 +0100
changeset 10976 56f07b52213a
parent 10975 47c3a00f8037
child 10977 b2823ea26631
child 10978 54a49174dbec
Allow skipping the bundle step after install on OSX
CMakeLists.txt
tools/CMakeLists.txt
--- a/CMakeLists.txt	Tue Jun 02 18:10:46 2015 +0100
+++ b/CMakeLists.txt	Tue Jun 02 18:37:40 2015 +0100
@@ -32,6 +32,7 @@
 
 option(MINIMAL_FLAGS "Respect system flags as much as possible (off)" OFF)
 option(NOAUTOUPDATE "Disable OS X Sparkle update checking (off)" OFF)
+option(SKIPBUNDLE "Do not create relocate bundle (off)" OFF)
 
 option(BUILD_ENGINE_C "Compile hwengine as native C (off)" OFF)
 option(GL2 "Enable OpenGL 2 rendering !!!EXPERIMENTAL - DO NOT USE!!! [default: off)" OFF)
--- a/tools/CMakeLists.txt	Tue Jun 02 18:10:46 2015 +0100
+++ b/tools/CMakeLists.txt	Tue Jun 02 18:37:40 2015 +0100
@@ -6,7 +6,7 @@
     add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
 endif()
 
-if(APPLE)
+if(APPLE AND NOT SKIPBUNDLE)
     find_package(Qt4 REQUIRED QUIET)
     find_package(PNG REQUIRED)
     find_package(SDL REQUIRED)