diff options
| author | hristo <[email protected]> | 2021-01-22 01:07:22 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-22 00:07:22 +0100 |
| commit | 05dfbf3cd42e63f56d978cafec63f22fd7538e9f (patch) | |
| tree | 79ec578f96f053fb89ebdce97b1b79a02b52581d /cmake/BuildOptions.cmake | |
| parent | 18ab694f703ee4b185935b5bdd5a533ea05933d2 (diff) | |
| download | raylib-05dfbf3cd42e63f56d978cafec63f22fd7538e9f.tar.gz raylib-05dfbf3cd42e63f56d978cafec63f22fd7538e9f.zip | |
Remove STATIC and SHARED variables. (#1542)
As described in the official documentation https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html this flag is global by default and controls if the library will be built as a shared or a static library allowing us to define only one call to the add_library function (without specifying its type). It is also added as an option to be visible in CMake GUI applications.
Diffstat (limited to 'cmake/BuildOptions.cmake')
| -rw-r--r-- | cmake/BuildOptions.cmake | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/cmake/BuildOptions.cmake b/cmake/BuildOptions.cmake index 00586c23..0fce6429 100644 --- a/cmake/BuildOptions.cmake +++ b/cmake/BuildOptions.cmake @@ -1,24 +1,3 @@ -if(NOT (STATIC OR SHARED)) - message(FATAL_ERROR "Nothing to do if both -DSHARED=OFF and -DSTATIC=OFF...") -endif() - -if (DEFINED BUILD_SHARED_LIBS) - set(SHARED ${BUILD_SHARED_LIBS}) - if (${BUILD_SHARED_LIBS}) - set(STATIC OFF) - else() - set(STATIC ON) - endif() -endif() -if(DEFINED SHARED_RAYLIB) - set(SHARED ${SHARED_RAYLIB}) - message(DEPRECATION "-DSHARED_RAYLIB is deprecated. Please use -DSHARED instead.") -endif() -if(DEFINED STATIC_RAYLIB) - set(STATIC ${STATIC_RAYLIB}) - message(DEPRECATION "-DSTATIC_RAYLIB is deprecated. Please use -DSTATIC instead.") -endif() - if(${PLATFORM} MATCHES "Desktop" AND APPLE) if(MACOS_FATLIB) if (CMAKE_OSX_ARCHITECTURES) |
