|
@@ -172,6 +172,11 @@ if(WINDOWS OR MACOS OR IOS OR TVOS OR VISIONOS OR WATCHOS)
|
|
|
set(SDL_SYSTEM_ICONV_DEFAULT OFF)
|
|
|
endif()
|
|
|
|
|
|
+set(SDL_RELOCATABLE_DEFAULT OFF)
|
|
|
+if(MSVC)
|
|
|
+ set(SDL_RELOCATABLE_DEFAULT ON)
|
|
|
+endif()
|
|
|
+
|
|
|
if(MSVC)
|
|
|
if(NOT SDL_LIBC)
|
|
|
# Make sure /RTC1 is disabled, otherwise it will use functions from the CRT
|
|
@@ -277,11 +282,12 @@ if(COMMAND SDL_Preseed_CMakeCache)
|
|
|
endif()
|
|
|
|
|
|
# Allow some projects to be built conditionally.
|
|
|
-set_option(SDL_DISABLE_INSTALL "Disable installation of SDL3" ${SDL3_SUBPROJECT})
|
|
|
+set_option(SDL_DISABLE_INSTALL "Disable installation of SDL3" ${SDL3_SUBPROJECT})
|
|
|
cmake_dependent_option(SDL_DISABLE_INSTALL_CPACK "Create binary SDL3 archive using CPack" ${SDL3_SUBPROJECT} "NOT SDL_DISABLE_INSTALL" ON)
|
|
|
cmake_dependent_option(SDL_DISABLE_INSTALL_DOCS "Install docs for SDL3" ON "NOT SDL_DISABLE_INSTALL;NOT SDL_FRAMEWORK" ON)
|
|
|
-set_option(SDL_DISABLE_UNINSTALL "Disable uninstallation of SDL3" OFF)
|
|
|
+set_option(SDL_DISABLE_UNINSTALL "Disable uninstallation of SDL3" OFF)
|
|
|
cmake_dependent_option(SDL_PRESEED "Preseed CMake cache to speed up configuration" ON "${SDL_PRESEED_AVAILABLE}" OFF)
|
|
|
+cmake_dependent_option(SDL_RELOCATABLE "Create relocatable SDL package" ${SDL_RELOCATABLE_DEFAULT} "NOT SDL_DISABLE_INSTALL" OFF)
|
|
|
|
|
|
cmake_dependent_option(SDL_DISABLE_ANDROID_JAR "Disable creation of SDL3.jar" ${SDL3_SUBPROJECT} "ANDROID" ON)
|
|
|
|