Skip to content

Commit

Permalink
Try to fix linker error
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonrecursion committed Nov 12, 2023
1 parent f07b7a1 commit 5fdcd46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions colobot-common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ endif()
target_include_directories(Colobot-Common PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
)

if(NOT CBOT_STATIC)
set_target_properties(Colobot-Common PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()

0 comments on commit 5fdcd46

Please sign in to comment.