mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 03:50:40 +02:00
Force dynamic build on Linux, fixes #151
This commit is contained in:
parent
7833a49784
commit
39f23b52c3
2 changed files with 12 additions and 1 deletions
|
@ -62,3 +62,11 @@ endif ()
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
set(CMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS "--deep")
|
set(CMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS "--deep")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (UNIX)
|
||||||
|
# Static libs result in duplicated constructor and destructor calls on Linux
|
||||||
|
# and crashes on exit, and perhaps loss of global state on plugin loads.
|
||||||
|
#
|
||||||
|
# This will need to be looked at closely before Linux can have a static build.
|
||||||
|
set(BUILD_SHARED_LIBS ON)
|
||||||
|
endif ()
|
||||||
|
|
|
@ -142,6 +142,9 @@ if (APPLE)
|
||||||
list(APPEND INTERFACE_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/icon/${INTERFACE_ICON_FILENAME})
|
list(APPEND INTERFACE_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/icon/${INTERFACE_ICON_FILENAME})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (UNIX)
|
||||||
|
set(BUILD_SHARED_LIBS ON)
|
||||||
|
endif ()
|
||||||
|
|
||||||
# create the executable, make it a bundle on OS X
|
# create the executable, make it a bundle on OS X
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
|
Loading…
Reference in a new issue