summaryrefslogtreecommitdiff
path: root/muse2/synti
diff options
context:
space:
mode:
authorOrcan Ogetbil <oget.fedora@gmail.com>2011-01-31 18:50:38 +0000
committerOrcan Ogetbil <oget.fedora@gmail.com>2011-01-31 18:50:38 +0000
commit6cad77308d5c794052daaf3dd301b89bc894bd63 (patch)
tree62e45a1887e1428105ba499176a68644f92c7a6b /muse2/synti
parent18cef43657bc6841e4dab526fce83a6ad6a34374 (diff)
added option to build internal modules statically
Diffstat (limited to 'muse2/synti')
-rw-r--r--muse2/synti/libsynti/CMakeLists.txt15
1 files changed, 7 insertions, 8 deletions
diff --git a/muse2/synti/libsynti/CMakeLists.txt b/muse2/synti/libsynti/CMakeLists.txt
index 8b7a662b..0b0e480c 100644
--- a/muse2/synti/libsynti/CMakeLists.txt
+++ b/muse2/synti/libsynti/CMakeLists.txt
@@ -37,7 +37,7 @@ file (GLOB synti_source_files
##
## Define target
##
-add_library(synti SHARED
+add_library(synti ${MODULES_BUILD}
${PROJECT_BINARY_DIR}/all-pic.h.pch
${synti_source_files}
)
@@ -54,17 +54,16 @@ set (FILES_TO_TRANSLATE
##
## Compilation flags and target name
##
-#
-# -fPIC is necessary for 64 bit systems
-#
set_target_properties( synti
- PROPERTIES COMPILE_FLAGS "-fPIC -include ${PROJECT_BINARY_DIR}/all-pic.h"
+ PROPERTIES COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all-pic.h"
OUTPUT_NAME muse_synti
)
##
## Install location
##
-install(TARGETS synti
- DESTINATION ${MusE_MODULES_DIR}
- )
+if ( ${MODULES_BUILD} STREQUAL SHARED )
+ install(TARGETS synti
+ DESTINATION ${MusE_MODULES_DIR}
+ )
+endif ( ${MODULES_BUILD} STREQUAL SHARED )