summaryrefslogtreecommitdiff
path: root/unity-shared/CMakeLists.txt
diff options
authorJussi Pakkanen <jussi.pakkanen@canonical.com>2012-11-28 16:20:55 +0200
committerJussi Pakkanen <jussi.pakkanen@canonical.com>2012-11-28 16:20:55 +0200
commit0c7afea16da13ad4e959b8066839b29637b0e43d (patch)
treeeff32d78b3b4a54ebae5093c532c2f3182018fee /unity-shared/CMakeLists.txt
parentffdc5d88f1e2b97eabdd279b70d2d2fef3de3370 (diff)
Define PIC_FLAGS only once.
(bzr r2934.3.5)
Diffstat (limited to 'unity-shared/CMakeLists.txt')
-rw-r--r--unity-shared/CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/unity-shared/CMakeLists.txt b/unity-shared/CMakeLists.txt
index d61b53e53..dabe26ee9 100644
--- a/unity-shared/CMakeLists.txt
+++ b/unity-shared/CMakeLists.txt
@@ -5,12 +5,9 @@ find_package (PkgConfig)
set (CFLAGS
${CACHED_UNITY_DEPS_CFLAGS}
${CACHED_UNITY_DEPS_CFLAGS_OTHER}
+ ${PIC_FLAGS}
)
-if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l")
- set (CFLAGS ${CFLAGS} "-fPIC")
-endif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l")
-
string (REPLACE ";" " " CFLAGS "${CFLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CFLAGS}")