Skip to content

Commit 268b571

Browse files
committed
Turn on position independent code
1 parent 7e7d6bd commit 268b571

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ include(GNUInstallDirs)
1616
OPTION(ENABLE_DOCS "Enable generation of doxygen-based documentation" OFF)
1717
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
1818

19+
# Turn on position independent code
20+
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
21+
1922
# Check build type.
2023
if(NOT CMAKE_BUILD_TYPE MATCHES "^(Debug|Release|RelWithDebInfo|MinSizeRel)$")
2124
message(STATUS "Setting build type to 'Release' as none was specified.")

0 commit comments

Comments
 (0)