diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -115,8 +115,8 @@ # which is not widely distributed at the time of writing. # FIXME: use the POSITION_INDEPENDENT_CODE property instead if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows") - add_compiler_flag(-fPIE) - add_linker_flag(-pie) + add_compiler_flags(-fPIE) + add_linker_flags(-pie) else() # MinGw provides its own libssp for stack smashing protection link_libraries(ssp)