From c9043b5a872015bab4dc1b0606504341e9ce5b2b Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Sat, 24 Feb 2018 15:26:13 +0100 Subject: CMake: Add options to use -fsanitize={address,undefined} To make bugs like #485, #486, #487 and #488 easier to find in future. --- src/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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...") -- cgit v1.2.3