Use SET(CMAKE_POSITION_INDEPENDENT_CODE 1)

pull/280/head
Jeffrey Walton 2016-09-15 05:16:01 -04:00
parent 722afc4733
commit 34c1837647
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ endif()
if ((NOT CRYPTOPP_CROSS_COMPILE) AND (NOT (WINDOWS OR WINDOWS_STORE OR WINDOWS_PHONE))) if ((NOT CRYPTOPP_CROSS_COMPILE) AND (NOT (WINDOWS OR WINDOWS_STORE OR WINDOWS_PHONE)))
# Use Regex; match i386, i486, i586 and i686 # Use Regex; match i386, i486, i586 and i686
if (NOT (${UNAME_MACHINE} MATCHES "i.86")) if (NOT (${UNAME_MACHINE} MATCHES "i.86"))
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") SET(CMAKE_POSITION_INDEPENDENT_CODE 1)
endif() endif()
endif() endif()