Skip to content

Commit

Permalink
Merge pull request #7 from InvalidString/dynamic-feature
Browse files Browse the repository at this point in the history
when linking dynamically raylib should BUILD_SHARED_LIBS
  • Loading branch information
ewpratten authored Oct 16, 2023
2 parents e9b04d6 + 78d6312 commit e952d2f
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 e952d2f

Please sign in to comment.