Proper cache variable setting

This commit is contained in:
2025-08-30 22:11:58 +03:00
parent 338ffe2661
commit 228eafb7d8

View File

@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.13.0)
project(world2)
set(CMAKE_CXX_STANDARD 14)
option(BLENDER "Path to blender executable" ${CMAKE_SOURCE_DIR}/../../blender-bin/bin/blender)
set(BLENDER "${CMAKE_SOURCE_DIR}/../../blender-bin/bin/blender" CACHE STRING "Blender path")
set(CREATE_DIRECTORIES
${CMAKE_BINARY_DIR}/assets/blender/shapes/male
${CMAKE_BINARY_DIR}/assets/blender/shapes/female
@@ -101,10 +101,11 @@ target_link_libraries(Game OgreBites OgreBullet OgrePaging OgreTerrain OgreMeshL
GameData
sound
flecs::flecs_static
-static-libgcc
-static-libstdc++
-static-libgcc
-Wl,--as-needed
)
target_link_options(Game PRIVATE -static-libstdc++ -static-libgcc)
add_dependencies(Game stage_files import_buildings import_water_stuff import_vehicles import_vrm audio_data_gui)
add_executable(Procedural Procedural.cpp ${TERRAIN_SRC})