Build framework dynamically by default
This commit is contained in:
parent
b7b8fdfd0c
commit
edde71fc09
|
@ -19,6 +19,7 @@ if(NOT APPLE)
|
|||
endif()
|
||||
|
||||
option(USE_PCH "Use precompiled header (speed up compile)" OFF)
|
||||
option(FRAMEWORK_STATIC "Build and link framework statically" OFF)
|
||||
|
||||
set(executable_SOURCES
|
||||
src/main.cpp
|
||||
|
@ -37,7 +38,7 @@ endif()
|
|||
add_definitions(-D"VERSION=\\"${VERSION}\\"")
|
||||
|
||||
# we want framework to be a library for faster compilation/linking
|
||||
if(USE_STATIC_LIBS)
|
||||
if(FRAMEWORK_STATIC)
|
||||
add_library(${LIB_NAME} ${framework_SOURCES})
|
||||
else()
|
||||
add_library(${LIB_NAME} SHARED ${framework_SOURCES})
|
||||
|
|
Loading…
Reference in New Issue