From 0c7afea16da13ad4e959b8066839b29637b0e43d Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 28 Nov 2012 16:20:55 +0200 Subject: Define PIC_FLAGS only once. (bzr r2934.3.5) --- unity-shared/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'unity-shared/CMakeLists.txt') 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}") -- cgit v1.2.3