From edde71fc09aacfbc5d7de85810ef278a805edaa1 Mon Sep 17 00:00:00 2001 From: Ahmed Samy Date: Thu, 13 Feb 2014 14:34:31 +0200 Subject: [PATCH] Build framework dynamically by default --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e8e2e511..2f0f5be0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})