[PATCH] Adjust flag for static lib and 64 bits computers using -fPIC for GCC compiler

Milan Knížek knizek at volny.cz
Sun Apr 10 09:35:50 BST 2011


---
 acquireimages/CMakeLists.txt |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/acquireimages/CMakeLists.txt b/acquireimages/CMakeLists.txt
index e60e526..18bb906 100644
--- a/acquireimages/CMakeLists.txt
+++ b/acquireimages/CMakeLists.txt
@@ -8,6 +8,13 @@ SET(acquireimages_common_SRCS
     saveimgthread.cpp
    )
 
+# Adjust flag for static lib and 64 bits computers using -fPIC for GCC compiler (B.K.O: #269903)
+FOREACH(_currentfile ${libacquireimages_common_SRCS})
+    IF(NOT MSVC)
+        SET_SOURCE_FILES_PROPERTIES(${_currentfile} PROPERTIES COMPILE_FLAGS "-fPIC")
+    ENDIF(NOT MSVC)
+ENDFOREACH(_currentfile ${libacquireimages_common_SRCS})
+
 KDE4_ADD_LIBRARY(libacquireimages STATIC ${acquireimages_common_SRCS})
 
 TARGET_LINK_LIBRARIES(libacquireimages
-- 
1.7.4.4


--MP_/zljn+uPIgKd=QiyGKNoirXW--



More information about the Digikam-devel mailing list