1

when linking dynamically raylib should BUILD_SHARED_LIBS

This commit is contained in:
InvalidString 2023-10-16 18:32:04 +02:00
parent e9b04d6a21
commit 78d6312394

@ -10,6 +10,10 @@ pub fn compile_raylib(raylib_path: &str) {
.define("BUILD_EXAMPLES", "OFF")
.define("CMAKE_BUILD_TYPE", "Release");
if cfg!(feature = "dylib") {
cmake_config.define("BUILD_SHARED_LIBS", "ON");
}
// Set the correct build profile
#[cfg(debug_assertions)]
{