From 51c9ca99e1ecd9eb7f6f57a48b1e92acebd02429 Mon Sep 17 00:00:00 2001 From: Vlad2001MFS Date: Thu, 5 Oct 2023 19:29:13 +0300 Subject: [PATCH] Fix generating non-static-linking projects in cmake --- src/xrEngine/CMakeLists.txt | 4 ++-- src/xrScriptEngine/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xrEngine/CMakeLists.txt b/src/xrEngine/CMakeLists.txt index a0ce6ff632f..fa6dc843072 100644 --- a/src/xrEngine/CMakeLists.txt +++ b/src/xrEngine/CMakeLists.txt @@ -409,8 +409,8 @@ target_link_libraries(${PROJECT_NAME} xrScriptEngine xrNetServer xrImGui - xrRender_GL - xrGame + $<$:xrRender_GL> + $<$:xrGame> ${LUA_LIBRARIES} ${SDL2_LIBRARIES} ${OPENAL_LIBRARY} diff --git a/src/xrScriptEngine/CMakeLists.txt b/src/xrScriptEngine/CMakeLists.txt index dda26d579cb..989038ed413 100644 --- a/src/xrScriptEngine/CMakeLists.txt +++ b/src/xrScriptEngine/CMakeLists.txt @@ -112,7 +112,7 @@ target_link_libraries(${PROJECT_NAME} xrCore xrLuaFix xrLuabind - xrGame + $<$:xrGame> ${LUA_LIBRARIES} )