Fix build - static library used in shared library must have position-independent code
parent
f07b7a1b60
commit
32fed5af73
|
@ -1,5 +1,10 @@
|
|||
add_library(Colobot-Common STATIC)
|
||||
|
||||
if(NOT CBOT_STATIC)
|
||||
# required to use static library inside CBot shared library
|
||||
set_property(TARGET Colobot-Common PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
|
||||
target_sources(Colobot-Common PRIVATE
|
||||
src/common/stringutils.cpp
|
||||
src/common/stringutils.h
|
||||
|
|
Loading…
Reference in New Issue