|
|
@@ -1,6 +1,7 @@
|
|
|
message(STATUS "")
|
|
|
message("Configuring support for the following optional third-party packages:")
|
|
|
|
|
|
+
|
|
|
# Settings to change USE_PACKAGE behavior (these options override cached values)
|
|
|
set(CONFIG_ENABLE_EVERYTHING Off)
|
|
|
set(CONFIG_DISABLE_EVERYTHING Off)
|
|
|
@@ -9,138 +10,134 @@ set(CONFIG_DISABLE_MISSING Off)
|
|
|
|
|
|
# Update USE_PACKAGE settings based on CLI arguments
|
|
|
if(EVERYTHING)
|
|
|
- message("Re-enabling all disabled third-party libraries.")
|
|
|
- set(CONFIG_ENABLE_EVERYTHING On)
|
|
|
+ message("Re-enabling all disabled third-party libraries.")
|
|
|
+ set(CONFIG_ENABLE_EVERYTHING On)
|
|
|
elseif(DISCOVERED)
|
|
|
- message("Enabling found and disabling not-found third-party libraries.")
|
|
|
- set(CONFIG_ENABLE_FOUND On)
|
|
|
- set(CONFIG_DISABLE_MISSING On)
|
|
|
+ message("Enabling found and disabling not-found third-party libraries.")
|
|
|
+ set(CONFIG_ENABLE_FOUND On)
|
|
|
+ set(CONFIG_DISABLE_MISSING On)
|
|
|
elseif(NOTHING)
|
|
|
- message("Disabling all third-party libraries.")
|
|
|
- set(CONFIG_DISABLE_EVERYTHING On)
|
|
|
+ message("Disabling all third-party libraries.")
|
|
|
+ set(CONFIG_DISABLE_EVERYTHING On)
|
|
|
endif()
|
|
|
|
|
|
+
|
|
|
include(ConfigurePackage)
|
|
|
|
|
|
+
|
|
|
# Find and configure Eigen library
|
|
|
-find_package(Eigen3)
|
|
|
-config_package(EIGEN COMMENT "eigen")
|
|
|
+find_package(Eigen3 QUIET)
|
|
|
+config_package(EIGEN "Eigen")
|
|
|
if(HAVE_EIGEN)
|
|
|
- if(WIN32)
|
|
|
- set(EIGEN_CFLAGS "/arch:SSE2")
|
|
|
- else()
|
|
|
- set(EIGEN_CFLAGS "-msse2")
|
|
|
- endif()
|
|
|
-
|
|
|
- if(CONFIG_ENABLE_EVERYTHING OR CONFIG_ENABLE_FOUND)
|
|
|
- unset(BUILD_EIGEN_VECTORIZATION)
|
|
|
- elseif(CONFIG_DISABLE_EVERYTHING)
|
|
|
- option(BUILD_EIGEN_VECTORIZATION "If on, vectorization is enabled in build." OFF)
|
|
|
- endif()
|
|
|
-
|
|
|
- if(NOT DEFINED BUILD_EIGEN_VECTORIZATION)
|
|
|
- message(STATUS "+ (vectorization enabled in build)")
|
|
|
- endif()
|
|
|
-
|
|
|
- option(BUILD_EIGEN_VECTORIZATION "If on, vectorization is enabled in build." ON)
|
|
|
-
|
|
|
- if(BUILD_EIGEN_VECTORIZATION)
|
|
|
- set(LINMATH_ALIGN TRUE)
|
|
|
- endif()
|
|
|
+ if(WIN32)
|
|
|
+ set(EIGEN_CFLAGS "/arch:SSE2")
|
|
|
+ else()
|
|
|
+ set(EIGEN_CFLAGS "-msse2")
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(CONFIG_ENABLE_EVERYTHING OR CONFIG_ENABLE_FOUND)
|
|
|
+ unset(BUILD_EIGEN_VECTORIZATION)
|
|
|
+ elseif(CONFIG_DISABLE_EVERYTHING)
|
|
|
+ option(BUILD_EIGEN_VECTORIZATION "If on, vectorization is enabled in build." OFF)
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(NOT DEFINED BUILD_EIGEN_VECTORIZATION)
|
|
|
+ message(STATUS "+ (vectorization enabled in build)")
|
|
|
+ endif()
|
|
|
+
|
|
|
+ option(BUILD_EIGEN_VECTORIZATION "If on, vectorization is enabled in build." ON)
|
|
|
+
|
|
|
+ if(BUILD_EIGEN_VECTORIZATION)
|
|
|
+ set(LINMATH_ALIGN TRUE)
|
|
|
+ endif()
|
|
|
else()
|
|
|
- unset(BUILD_EIGEN_VECTORIZATION CACHE)
|
|
|
+ unset(BUILD_EIGEN_VECTORIZATION CACHE)
|
|
|
endif()
|
|
|
|
|
|
+
|
|
|
# Find and configure OpenSSL library
|
|
|
find_package(OpenSSL QUIET COMPONENTS ssl crypto)
|
|
|
-mangle_package(OpenSSL)
|
|
|
-config_package(OPENSSL COMMENT "OpenSSL")
|
|
|
+config_package(OPENSSL "OpenSSL")
|
|
|
if(HAVE_OPENSSL)
|
|
|
- if(CONFIG_ENABLE_EVERYTHING OR CONFIG_ENABLE_FOUND)
|
|
|
- unset(BUILD_OPENSSL_ERROR_REPORTS)
|
|
|
- endif()
|
|
|
-
|
|
|
- if(NOT DEFINED OPTIMIZE OR OPTIMIZE LESS 4)
|
|
|
- option(BUILD_OPENSSL_ERROR_REPORTS "If on, OpenSSL reports verbose error messages when they occur." ON)
|
|
|
- else()
|
|
|
- set(BUILD_OPENSSL_ERROR_REPORTS "If on, OpenSSL reports verbose error messages when they occur." OFF)
|
|
|
- endif()
|
|
|
-
|
|
|
- if(BUILD_OPENSSL_ERROR_REPORTS)
|
|
|
- set(REPORT_OPENSSL_ERRORS TRUE)
|
|
|
- endif()
|
|
|
+ if(CONFIG_ENABLE_EVERYTHING OR CONFIG_ENABLE_FOUND)
|
|
|
+ unset(BUILD_OPENSSL_ERROR_REPORTS)
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(CMAKE_BUILD_TYPE MATCHES "Debug" OR CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo")
|
|
|
+ option(BUILD_OPENSSL_ERROR_REPORTS "If on, OpenSSL reports verbose error messages when they occur." ON)
|
|
|
+ else()
|
|
|
+ set(BUILD_OPENSSL_ERROR_REPORTS "If on, OpenSSL reports verbose error messages when they occur." OFF)
|
|
|
+ endif()
|
|
|
+
|
|
|
+ if(BUILD_OPENSSL_ERROR_REPORTS)
|
|
|
+ set(REPORT_OPENSSL_ERRORS TRUE)
|
|
|
+ endif()
|
|
|
else()
|
|
|
- unset(BUILD_OPENSSL_ERROR_REPORTS CACHE)
|
|
|
+ unset(BUILD_OPENSSL_ERROR_REPORTS CACHE)
|
|
|
endif()
|
|
|
|
|
|
+
|
|
|
# Find and configure JPEG library
|
|
|
-find_package(JPEG QUIET COMPONENTS jpeg)
|
|
|
-mangle_package(JPEG)
|
|
|
-config_package(JPEG COMMENT "libjpeg")
|
|
|
+find_package(JPEG QUIET)
|
|
|
+config_package(JPEG "libjpeg")
|
|
|
|
|
|
# Find and configure PNG library
|
|
|
-find_package(PNG QUIET COMPONENTS png)
|
|
|
-mangle_package(PNG)
|
|
|
-config_package(PNG COMMENT "libpng")
|
|
|
+find_package(PNG QUIET)
|
|
|
+config_package(PNG "libpng")
|
|
|
|
|
|
# Find and configure TIFF library
|
|
|
find_package(TIFF QUIET COMPONENTS tiff z)
|
|
|
-mangle_package(TIFF)
|
|
|
-config_package(TIFF COMMENT "libtiff")
|
|
|
+config_package(TIFF "libtiff")
|
|
|
|
|
|
# Find and configure Tar library
|
|
|
-find_package(Tar)
|
|
|
-config_package(TAR COMMENT "libtar")
|
|
|
+find_package(Tar QUIET)
|
|
|
+config_package(TAR "libtar")
|
|
|
|
|
|
# Find and configure FFTW library
|
|
|
-find_package(FFTW)
|
|
|
-config_package(FFTW COMMENT "fftw")
|
|
|
+find_package(FFTW QUIET)
|
|
|
+config_package(FFTW "fftw")
|
|
|
|
|
|
# Find and configure Squish library
|
|
|
-find_package(Squish)
|
|
|
-config_package(SQUISH COMMENT "squish")
|
|
|
+find_package(Squish QUIET)
|
|
|
+config_package(SQUISH "squish")
|
|
|
|
|
|
# Find and configure Cg library
|
|
|
-find_package(Cg)
|
|
|
-config_package(CG COMMENT "Nvidia Cg Shading Langauge")
|
|
|
-config_package(CGGL COMMENT "Cg OpenGL API")
|
|
|
-config_package(CGDX8 COMMENT "Cg DX8 API")
|
|
|
-config_package(CGDX9 COMMENT "Cg DX9 API")
|
|
|
-config_package(CGDX10 COMMENT "Cg DX10 API")
|
|
|
+find_package(Cg QUIET)
|
|
|
+config_package(CG "Nvidia Cg Shading Langauge")
|
|
|
+config_package(CGGL "Cg OpenGL API")
|
|
|
+config_package(CGDX8 "Cg DX8 API")
|
|
|
+config_package(CGDX9 "Cg DX9 API")
|
|
|
+config_package(CGDX10 "Cg DX10 API")
|
|
|
|
|
|
# Find and configure VRPN library
|
|
|
-find_package(VRPN)
|
|
|
+find_package(VRPN QUIET)
|
|
|
config_package(VRPN)
|
|
|
|
|
|
# Find and configure zlib
|
|
|
-find_package(ZLIB QUIET COMPONENTS z)
|
|
|
-mangle_package(ZLIB)
|
|
|
-config_package(ZLIB COMMENT "zlib")
|
|
|
+find_package(ZLIB QUIET)
|
|
|
+config_package(ZLIB "zlib")
|
|
|
|
|
|
# Find and configure Miles Sound System
|
|
|
-find_package(Miles)
|
|
|
-config_package(RAD_MSS COMMENT "Miles Sound System")
|
|
|
+find_package(Miles QUIET)
|
|
|
+config_package(RAD_MSS "Miles Sound System")
|
|
|
|
|
|
# Find and configure FMOD Ex
|
|
|
-find_package(FMODEx)
|
|
|
-config_package(FMODEX COMMENT "FMOD Ex sound library")
|
|
|
+find_package(FMODEx QUIET)
|
|
|
+config_package(FMODEX "FMOD Ex sound library")
|
|
|
|
|
|
# Find and configure OpenAL
|
|
|
find_package(OpenAL QUIET)
|
|
|
-mangle_package(OpenAL)
|
|
|
-config_package(OPENAL COMMENT "OpenAL sound library")
|
|
|
+config_package(OPENAL "OpenAL sound library")
|
|
|
|
|
|
# Find and configure GTK
|
|
|
find_package(GTK2 QUIET)
|
|
|
-mangle_package(GTK2)
|
|
|
-config_package(GTK COMMENT "gtk+-2")
|
|
|
+config_package(GTK "gtk+-2")
|
|
|
|
|
|
# Find and configure Freetype
|
|
|
find_package(Freetype QUIET)
|
|
|
-mangle_package(Freetype)
|
|
|
-config_package(FREETYPE COMMENT "Freetype")
|
|
|
+config_package(FREETYPE "Freetype")
|
|
|
if(HAVE_FREETYPE AND NOT WIN32)
|
|
|
- set(FREETYPE_CONFIG freetype-config)
|
|
|
+ set(FREETYPE_CONFIG freetype-config)
|
|
|
endif()
|
|
|
|
|
|
|
|
|
@@ -225,14 +222,14 @@ endif()
|
|
|
#find_package(FCollada)
|
|
|
#config_package(FCOLLADA COMMENT "FCollada")
|
|
|
#if(FOUND_COLLADA14DOM OR FOUND_COLLADA15DOM)
|
|
|
-# set(USE_COLLADA TRUE CACHE BOOL "If true, compile Panda3D with COLLADA DOM")
|
|
|
-# if(USE_COLLADA)
|
|
|
-# if(FOUND_COLLADA15DOM)
|
|
|
-# set(HAVE_COLLADA15DOM TRUE)
|
|
|
-# else()
|
|
|
-# set(HAVE_COLLADA14DOM TRUE)
|
|
|
-# endif()
|
|
|
-# endif()
|
|
|
+# set(USE_COLLADA TRUE CACHE BOOL "If true, compile Panda3D with COLLADA DOM")
|
|
|
+# if(USE_COLLADA)
|
|
|
+# if(FOUND_COLLADA15DOM)
|
|
|
+# set(HAVE_COLLADA15DOM TRUE)
|
|
|
+# else()
|
|
|
+# set(HAVE_COLLADA14DOM TRUE)
|
|
|
+# endif()
|
|
|
+# endif()
|
|
|
#endif()
|
|
|
|
|
|
# Find and configure Assimp
|
|
|
@@ -247,22 +244,22 @@ endif()
|
|
|
#find_package(Rocket)
|
|
|
#config_package(ROCKET COMMENT "libRocket")
|
|
|
#if(HAVE_ROCKET AND HAVE_PYTHON)
|
|
|
-# # Check for rocket python bindings
|
|
|
-# if(FOUND_ROCKET_PYTHON)
|
|
|
-# option(USE_ROCKET_PYTHON "If on, compile Panda3D with python bindings for libRocket" ON)
|
|
|
-# if(USE_ROCKET_PYTHON)
|
|
|
-# set(HAVE_ROCKET_PYTHON TRUE)
|
|
|
-# endif()
|
|
|
+# # Check for rocket python bindings
|
|
|
+# if(FOUND_ROCKET_PYTHON)
|
|
|
+# option(USE_ROCKET_PYTHON "If on, compile Panda3D with python bindings for libRocket" ON)
|
|
|
+# if(USE_ROCKET_PYTHON)
|
|
|
+# set(HAVE_ROCKET_PYTHON TRUE)
|
|
|
+# endif()
|
|
|
# else()
|
|
|
# unset(USE_ROCKET_PYTHON CACHE)
|
|
|
-# endif()
|
|
|
-# if(HAVE_ROCKET_PYTHON)
|
|
|
-# message(STATUS "+ libRocket with Python bindings")
|
|
|
-# else()
|
|
|
-# message(STATUS "+ libRocket without Python bindings")
|
|
|
-# endif()
|
|
|
+# endif()
|
|
|
+# if(HAVE_ROCKET_PYTHON)
|
|
|
+# message(STATUS "+ libRocket with Python bindings")
|
|
|
+# else()
|
|
|
+# message(STATUS "+ libRocket without Python bindings")
|
|
|
+# endif()
|
|
|
#else()
|
|
|
-# unset(USE_ROCKET_PYTHON CACHE)
|
|
|
+# unset(USE_ROCKET_PYTHON CACHE)
|
|
|
#endif()
|
|
|
|
|
|
# Find and configure Bullet
|
|
|
@@ -277,17 +274,17 @@ endif()
|
|
|
### Configure interrogate ###
|
|
|
message(STATUS "") # simple line break
|
|
|
if(HAVE_PYTHON)
|
|
|
- option(USE_INTERROGATE "If on, Panda3D will generate python interfaces" ON)
|
|
|
- if(USE_INTERROGATE)
|
|
|
- set(HAVE_INTERROGATE TRUE)
|
|
|
- endif()
|
|
|
+ option(USE_INTERROGATE "If on, Panda3D will generate python interfaces" ON)
|
|
|
+ if(USE_INTERROGATE)
|
|
|
+ set(HAVE_INTERROGATE TRUE)
|
|
|
+ endif()
|
|
|
else()
|
|
|
- unset(USE_INTERROGATE CACHE)
|
|
|
+ unset(USE_INTERROGATE CACHE)
|
|
|
endif()
|
|
|
if(HAVE_INTERROGATE)
|
|
|
- message(STATUS "Compilation will generate Python interfaces.")
|
|
|
+ message(STATUS "Compilation will generate Python interfaces.")
|
|
|
else()
|
|
|
- message(STATUS "Configuring Panda without Python interfaces.")
|
|
|
+ message(STATUS "Configuring Panda without Python interfaces.")
|
|
|
endif()
|
|
|
|
|
|
|
|
|
@@ -295,88 +292,88 @@ endif()
|
|
|
# Add basic use flag for threading
|
|
|
option(USE_THREADS "If on, compile Panda3D with threading support." ON)
|
|
|
if(USE_THREADS)
|
|
|
- set(HAVE_THREADS TRUE)
|
|
|
+ set(HAVE_THREADS TRUE)
|
|
|
else()
|
|
|
- unset(BUILD_SIMPLE_THREADS CACHE)
|
|
|
- unset(BUILD_OS_SIMPLE_THREADS CACHE)
|
|
|
+ unset(BUILD_SIMPLE_THREADS CACHE)
|
|
|
+ unset(BUILD_OS_SIMPLE_THREADS CACHE)
|
|
|
endif()
|
|
|
|
|
|
# Configure debug threads
|
|
|
if(NOT DEFINED OPTIMIZE OR OPTIMIZE LESS 3)
|
|
|
- option(BUILD_DEBUG_THREADS "If on, enables debugging of thread and sync operations (i.e. mutexes, deadlocks)" ON)
|
|
|
+ option(BUILD_DEBUG_THREADS "If on, enables debugging of thread and sync operations (i.e. mutexes, deadlocks)" ON)
|
|
|
else()
|
|
|
- option(BUILD_DEBUG_THREADS "If on, enables debugging of thread and sync operations (i.e. mutexes, deadlocks)" OFF)
|
|
|
+ option(BUILD_DEBUG_THREADS "If on, enables debugging of thread and sync operations (i.e. mutexes, deadlocks)" OFF)
|
|
|
endif()
|
|
|
if(BUILD_DEBUG_THREADS)
|
|
|
- set(DEBUG_THREADS TRUE)
|
|
|
+ set(DEBUG_THREADS TRUE)
|
|
|
endif()
|
|
|
|
|
|
# Add advanced threading configuration
|
|
|
if(HAVE_THREADS)
|
|
|
- option(BUILD_SIMPLE_THREADS "If on, compile with simulated threads." OFF)
|
|
|
- if(BUILD_SIMPLE_THREADS)
|
|
|
- message(STATUS "Compilation will include simulated threading support.")
|
|
|
- option(BUILD_OS_SIMPLE_THREADS "If on, OS threading constructs will be used to perform context switches." ON)
|
|
|
-
|
|
|
- set(SIMPLE_THREADS TRUE)
|
|
|
- if(BUILD_OS_SIMPLE_THREADS)
|
|
|
- set(OS_SIMPLE_THREADS TRUE)
|
|
|
- endif()
|
|
|
- else()
|
|
|
- unset(BUILD_OS_SIMPLE_THREADS CACHE)
|
|
|
-
|
|
|
- option(BUILD_PIPELINING "If on, compile with pipelined rendering." ON)
|
|
|
- if(BUILD_PIPELINING)
|
|
|
- message(STATUS "Compilation will include full, pipelined threading support.")
|
|
|
- else()
|
|
|
- message(STATUS "Compilation will include nonpipelined threading support.")
|
|
|
- endif()
|
|
|
- endif()
|
|
|
+ option(BUILD_SIMPLE_THREADS "If on, compile with simulated threads." OFF)
|
|
|
+ if(BUILD_SIMPLE_THREADS)
|
|
|
+ message(STATUS "Compilation will include simulated threading support.")
|
|
|
+ option(BUILD_OS_SIMPLE_THREADS "If on, OS threading constructs will be used to perform context switches." ON)
|
|
|
+
|
|
|
+ set(SIMPLE_THREADS TRUE)
|
|
|
+ if(BUILD_OS_SIMPLE_THREADS)
|
|
|
+ set(OS_SIMPLE_THREADS TRUE)
|
|
|
+ endif()
|
|
|
+ else()
|
|
|
+ unset(BUILD_OS_SIMPLE_THREADS CACHE)
|
|
|
+
|
|
|
+ option(BUILD_PIPELINING "If on, compile with pipelined rendering." ON)
|
|
|
+ if(BUILD_PIPELINING)
|
|
|
+ message(STATUS "Compilation will include full, pipelined threading support.")
|
|
|
+ else()
|
|
|
+ message(STATUS "Compilation will include nonpipelined threading support.")
|
|
|
+ endif()
|
|
|
+ endif()
|
|
|
else()
|
|
|
- message(STATUS "Configuring Panda without threading support.")
|
|
|
+ message(STATUS "Configuring Panda without threading support.")
|
|
|
endif()
|
|
|
|
|
|
set(HAVE_POSIX_THREADS FALSE)
|
|
|
if(NOT WIN32)
|
|
|
- find_path(PTHREAD_IPATH
|
|
|
- NAMES "pthread.h"
|
|
|
- PATHS "/usr/include"
|
|
|
- )
|
|
|
- if(PTHREAD_IPATH)
|
|
|
- set(HAVE_POSIX_THREADS TRUE)
|
|
|
- set(THREAD_LIBS pthread)
|
|
|
- set(CMAKE_CXX_FLAGS "-pthread")
|
|
|
- set(CMAKE_CXX_FLAGS_DEBUG "-pthread")
|
|
|
- set(CMAKE_CXX_FLAGS_RELEASE "-pthread")
|
|
|
- set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-pthread")
|
|
|
- set(CMAKE_CXX_FLAGS_MINSIZEREL "-pthread")
|
|
|
-
|
|
|
- mark_as_advanced(PTHREAD_IPATH)
|
|
|
- endif()
|
|
|
+ find_path(PTHREAD_IPATH
|
|
|
+ NAMES "pthread.h"
|
|
|
+ PATHS "/usr/include"
|
|
|
+ )
|
|
|
+ if(PTHREAD_IPATH)
|
|
|
+ set(HAVE_POSIX_THREADS TRUE)
|
|
|
+ set(THREAD_LIBS pthread)
|
|
|
+ set(CMAKE_CXX_FLAGS "-pthread")
|
|
|
+ set(CMAKE_CXX_FLAGS_DEBUG "-pthread")
|
|
|
+ set(CMAKE_CXX_FLAGS_RELEASE "-pthread")
|
|
|
+ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-pthread")
|
|
|
+ set(CMAKE_CXX_FLAGS_MINSIZEREL "-pthread")
|
|
|
+
|
|
|
+ mark_as_advanced(PTHREAD_IPATH)
|
|
|
+ endif()
|
|
|
endif()
|
|
|
|
|
|
|
|
|
### Configure pipelining ###
|
|
|
if(NOT DEFINED BUILD_PIPELINING)
|
|
|
- if(NOT DEFINED OPTIMIZE OR OPTIMIZE LESS 2)
|
|
|
- option(BUILD_PIPELINING "If on, compile with pipelined rendering." ON)
|
|
|
- else()
|
|
|
- option(BUILD_PIPELINING "If on, compile with pipelined rendering." OFF)
|
|
|
- endif()
|
|
|
+ if(NOT DEFINED OPTIMIZE OR OPTIMIZE LESS 2)
|
|
|
+ option(BUILD_PIPELINING "If on, compile with pipelined rendering." ON)
|
|
|
+ else()
|
|
|
+ option(BUILD_PIPELINING "If on, compile with pipelined rendering." OFF)
|
|
|
+ endif()
|
|
|
endif()
|
|
|
if(BUILD_PIPELINING)
|
|
|
- set(DO_PIPELINING TRUE)
|
|
|
+ set(DO_PIPELINING TRUE)
|
|
|
endif()
|
|
|
|
|
|
### Configure OS X options ###
|
|
|
if(OSX_PLATFORM)
|
|
|
- option(BUILD_UNIVERSIAL_BINARIES "If on, compiling will create universal OS X binaries." ON)
|
|
|
- if(BUILD_UNIVERSAL_BINARIES)
|
|
|
- message(STATUS "Compilation will create universal binaries.")
|
|
|
- set(UNIVERSAL_BINARIES TRUE)
|
|
|
- else()
|
|
|
- message(STATUS "Compilation will not create universal binaries.")
|
|
|
- endif()
|
|
|
+ option(BUILD_UNIVERSIAL_BINARIES "If on, compiling will create universal OS X binaries." ON)
|
|
|
+ if(BUILD_UNIVERSAL_BINARIES)
|
|
|
+ message(STATUS "Compilation will create universal binaries.")
|
|
|
+ set(UNIVERSAL_BINARIES TRUE)
|
|
|
+ else()
|
|
|
+ message(STATUS "Compilation will not create universal binaries.")
|
|
|
+ endif()
|
|
|
endif()
|
|
|
|
|
|
message(STATUS "")
|
|
|
@@ -418,9 +415,9 @@ set(HAVE_STREAMSIZE ON)
|
|
|
set(HAVE_IOS_TYPEDEFS ON)
|
|
|
|
|
|
if(WIN32)
|
|
|
- set(DEFAULT_PATHSEP ";")
|
|
|
+ set(DEFAULT_PATHSEP ";")
|
|
|
else()
|
|
|
- set(DEFAULT_PATHSEP ":")
|
|
|
+ set(DEFAULT_PATHSEP ":")
|
|
|
endif()
|
|
|
|
|
|
configure_file(dtool_config.h.cmake ${CMAKE_BINARY_DIR}/include/dtool_config.h)
|