CMake

CMake PIE

It may be necessary to add the following line to CMakeLists.txt if a can not be used when making a PIE object; compiler is thrown:

  1. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-pie -fexceptions -std=c++11 -Wno-deprecated-declarations -Wno-reorder")