summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>2013-01-09 01:12:54 -0800
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>2013-01-14 00:34:17 -0800
commit3938d7cc3f1328b9e53eee6de0e0669e673b9735 (patch)
treec5bb6cafb2460bf6e1e750155e7c83acd5ece7fb
parent22fa9a714a1dbcf232caa08cfdb7f9e5f490746e (diff)
downloadlayer_management-3938d7cc3f1328b9e53eee6de0e0669e673b9735.tar.gz
CMake: fixed compiler flags for 64 bit linux builds
Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
-rw-r--r--LayerManagerUtils/CMakeLists.txt2
-rw-r--r--cmake/modules/DefaultSettings.txt6
2 files changed, 3 insertions, 5 deletions
diff --git a/LayerManagerUtils/CMakeLists.txt b/LayerManagerUtils/CMakeLists.txt
index d4b01e0..7372d40 100644
--- a/LayerManagerUtils/CMakeLists.txt
+++ b/LayerManagerUtils/CMakeLists.txt
@@ -24,8 +24,6 @@ project_type(CORE)
find_package (Threads)
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
-
add_library(${PROJECT_NAME} STATIC
src/Bitmap.cpp
src/IlmMatrix.cpp
diff --git a/cmake/modules/DefaultSettings.txt b/cmake/modules/DefaultSettings.txt
index e047509..358448b 100644
--- a/cmake/modules/DefaultSettings.txt
+++ b/cmake/modules/DefaultSettings.txt
@@ -39,9 +39,9 @@ endif (WITH_STATIC_LIBRARIES)
#==============================================================================
# default compiler flags
#==============================================================================
-set (COMPILER_FLAGS_EXAMPLE "-Wall -Wextra")
-set (COMPILER_FLAGS_PLUGIN "-Wall -Wextra -pedantic -Wno-long-long")
-set (COMPILER_FLAGS_CORE "-Wall -Wextra -pedantic -Wno-long-long -Wno-unused-function")
+set (COMPILER_FLAGS_EXAMPLE "-Wall -Wextra -fPIC")
+set (COMPILER_FLAGS_PLUGIN "-Wall -Wextra -fPIC -pedantic -Wno-long-long")
+set (COMPILER_FLAGS_CORE "-Wall -Wextra -fPIC -pedantic -Wno-long-long -Wno-unused-function")
#==============================================================================