Merge pull request #7 from InvalidString/dynamic-feature
when linking dynamically raylib should BUILD_SHARED_LIBS
This commit is contained in:
commit
e952d2f3dd
@ -10,6 +10,10 @@ pub fn compile_raylib(raylib_path: &str) {
|
|||||||
.define("BUILD_EXAMPLES", "OFF")
|
.define("BUILD_EXAMPLES", "OFF")
|
||||||
.define("CMAKE_BUILD_TYPE", "Release");
|
.define("CMAKE_BUILD_TYPE", "Release");
|
||||||
|
|
||||||
|
if cfg!(feature = "dylib") {
|
||||||
|
cmake_config.define("BUILD_SHARED_LIBS", "ON");
|
||||||
|
}
|
||||||
|
|
||||||
// Set the correct build profile
|
// Set the correct build profile
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user