aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeOptions.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/CMakeOptions.txt b/src/CMakeOptions.txt
index 84643b28..d4ecb392 100644
--- a/src/CMakeOptions.txt
+++ b/src/CMakeOptions.txt
@@ -84,6 +84,14 @@ 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.")