Use SET(CMAKE_POSITION_INDEPENDENT_CODE 1)
parent
722afc4733
commit
34c1837647
|
|
@ -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()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue