diff --git a/src/ox/clargs/CMakeLists.txt b/src/ox/clargs/CMakeLists.txt index 172c773ae..a096079cc 100644 --- a/src/ox/clargs/CMakeLists.txt +++ b/src/ox/clargs/CMakeLists.txt @@ -5,6 +5,13 @@ add_library( clargs.cpp ) +set_property( + TARGET + OxClArgs + PROPERTY + POSITION_INDEPENDENT_CODE ON +) + install( FILES clargs.hpp diff --git a/src/ox/fs/CMakeLists.txt b/src/ox/fs/CMakeLists.txt index c7cd44c28..5b95186dc 100644 --- a/src/ox/fs/CMakeLists.txt +++ b/src/ox/fs/CMakeLists.txt @@ -5,6 +5,13 @@ add_library( filesystem.cpp ) +set_property( + TARGET + OxFS + PROPERTY + POSITION_INDEPENDENT_CODE ON +) + if(OX_BUILD_EXEC STREQUAL "ON") add_executable( oxfstool diff --git a/src/ox/std/CMakeLists.txt b/src/ox/std/CMakeLists.txt index c0d2f10e2..70d68550f 100644 --- a/src/ox/std/CMakeLists.txt +++ b/src/ox/std/CMakeLists.txt @@ -7,6 +7,13 @@ add_library( strops.cpp ) +set_property( + TARGET + OxStd + PROPERTY + POSITION_INDEPENDENT_CODE ON +) + install( FILES byteswap.hpp