Skip to content

Commit 51c9ca9

Browse files
committed
Fix generating non-static-linking projects in cmake
1 parent 1c5e305 commit 51c9ca9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/xrEngine/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ target_link_libraries(${PROJECT_NAME}
409409
xrScriptEngine
410410
xrNetServer
411411
xrImGui
412-
xrRender_GL
413-
xrGame
412+
$<$<BOOL:${STATIC_BUILD}>:xrRender_GL>
413+
$<$<BOOL:${STATIC_BUILD}>:xrGame>
414414
${LUA_LIBRARIES}
415415
${SDL2_LIBRARIES}
416416
${OPENAL_LIBRARY}

src/xrScriptEngine/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ target_link_libraries(${PROJECT_NAME}
112112
xrCore
113113
xrLuaFix
114114
xrLuabind
115-
xrGame
115+
$<$<BOOL:${STATIC_BUILD}>:xrGame>
116116
${LUA_LIBRARIES}
117117
)
118118

0 commit comments

Comments
 (0)