Skip to content

Commit

Permalink
when linking dynamically raylib should BUILD_SHARED_LIBS
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidString committed Oct 16, 2023
1 parent e9b04d6 commit 78d6312
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/bind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
{
Expand Down

0 comments on commit 78d6312

Please sign in to comment.