Closed Raffaello closed 4 years ago
replace -fPIC with set(CMAKE_POSITION_INDEPENDENT_CODE ON)
-fPIC
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
ref: https://cliutils.gitlab.io/modern-cmake/chapters/features/small.html
replace
-fPIC
withset(CMAKE_POSITION_INDEPENDENT_CODE ON)
ref: https://cliutils.gitlab.io/modern-cmake/chapters/features/small.html