summaryrefslogtreecommitdiffhomepage
path: root/CMakeOptions.txt
diff options
context:
space:
mode:
authorhristo <[email protected]>2021-01-22 01:07:22 +0200
committerGitHub <[email protected]>2021-01-22 00:07:22 +0100
commit05dfbf3cd42e63f56d978cafec63f22fd7538e9f (patch)
tree79ec578f96f053fb89ebdce97b1b79a02b52581d /CMakeOptions.txt
parent18ab694f703ee4b185935b5bdd5a533ea05933d2 (diff)
downloadraylib-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 'CMakeOptions.txt')
-rw-r--r--CMakeOptions.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeOptions.txt b/CMakeOptions.txt
index f39d17a1..7ab43de2 100644
--- a/CMakeOptions.txt
+++ b/CMakeOptions.txt
@@ -14,8 +14,7 @@ option(ENABLE_MSAN "Enable MemorySanitizer (MSan) for debugging (not recommended
# Shared library is always PIC. Static library should be PIC too if linked into a shared library
option(WITH_PIC "Compile static library as position-independent code" OFF)
-option(SHARED "Build raylib as a dynamic library" OFF)
-option(STATIC "Build raylib as a static library" ON)
+option(BUILD_SHARED_LIBS "Build raylib as a shared library" OFF)
option(MACOS_FATLIB "Build fat library for both i386 and x86_64 on macOS" OFF)
option(USE_AUDIO "Build raylib with audio module" ON)