We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4264391 commit e98b241Copy full SHA for e98b241
1 file changed
CMakeLists.txt
@@ -25,6 +25,9 @@ option(STATIC_CHECK "Enable static check" OFF)
25
26
option(ENABLE_VISUALIZATION "Enable visualization targets" ON)
27
28
+## Enable -fPIC for all targets
29
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
30
+
31
if (BUILD_AS_MODULE OR (NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")))
32
message(STATUS "Visualization targets are not build on non-x86_64 or when built as module")
33
set(ENABLE_VISUALIZATION OFF)
0 commit comments