[sword-svn] r2732 - trunk
greg.hellings at crosswire.org
greg.hellings at crosswire.org
Wed Aug 29 06:37:05 MST 2012
Author: greg.hellings
Date: 2012-08-29 06:37:05 -0700 (Wed, 29 Aug 2012)
New Revision: 2732
Modified:
trunk/CMakeLists.txt
Log:
Added -fPIC to build the library. Now bindings support linking against
either static or shared library versions.
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2012-08-29 08:16:39 UTC (rev 2731)
+++ trunk/CMakeLists.txt 2012-08-29 13:37:05 UTC (rev 2732)
@@ -71,6 +71,7 @@
IF(LIBSWORD_LIBRARY_TYPE MATCHES ".*Static.*" OR NOT LIBSWORD_LIBRARY_TYPE)
ADD_LIBRARY(sword_static STATIC ${sword_SOURCES})
+ SET_TARGET_PROPERTIES(sword_static PROPERTIES COMPILE_FLAGS "-fPIC")
SET(BUILDING_STATIC 1)
# Defaults to linking against the shared if it is also being built
IF(NOT BUILDING_SHARED)
More information about the sword-cvs
mailing list