diff --git a/CMakeLists.txt b/CMakeLists.txt index f89489e..fcb7b9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,11 +101,11 @@ target_link_libraries(Game OgreBites OgreBullet OgrePaging OgreTerrain OgreMeshL GameData sound flecs::flecs_static - -static-libstdc++ - -static-libgcc -Wl,--as-needed ) +if(OGRE_STATIC) target_link_options(Game PRIVATE -static-libstdc++ -static-libgcc) +endif() add_dependencies(Game stage_files import_buildings import_water_stuff import_vehicles import_vrm audio_data_gui) add_executable(Procedural Procedural.cpp ${TERRAIN_SRC})