diff options
| author | Ahmad Fatoum <[email protected]> | 2018-02-24 15:26:13 +0100 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-02-24 15:37:38 +0100 |
| commit | c9043b5a872015bab4dc1b0606504341e9ce5b2b (patch) | |
| tree | 26a5741019a2e505ea7fc337d41bca13403a2e60 /src/CMakeLists.txt | |
| parent | 6ffc8cb7990fb4ff40f205cb53bec797b10e48a2 (diff) | |
| download | raylib-c9043b5a872015bab4dc1b0606504341e9ce5b2b.tar.gz raylib-c9043b5a872015bab4dc1b0606504341e9ce5b2b.zip | |
CMake: Add options to use -fsanitize={address,undefined}
To make bugs like #485, #486, #487 and #488 easier to find in future.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6f759324..db5d55c3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -8,11 +8,11 @@ set(RAYLIB raylib) # Name of the generated library ### Config options ### # Shared library is always PIC. Static library should be PIC too if linked into a shared library -set(WITH_PIC OFF CACHE BOOL "Compile static library as position-independent code" OFF) +option(WITH_PIC "Compile static library as position-independent code" OFF) # Build a static and/or shared raylib? -set(SHARED OFF CACHE BOOL "Build raylib as a dynamic library") -set(STATIC ON CACHE BOOL "Build raylib as a static library") -set(MACOS_FATLIB ON CACHE BOOL "Build fat library for both i386 and x86_64 on macOS") +option(SHARED "Build raylib as a dynamic library" OFF) +option(STATIC "Build raylib as a static library" ON) +option(MACOS_FATLIB "Build fat library for both i386 and x86_64 on macOS" ON) if(NOT (STATIC OR SHARED)) message(FATAL_ERROR "Nothing to do if both -DSHARED=OFF and -DSTATIC=OFF...") |
