Added -fPIC compile option on UNIX

This commit is contained in:
Paolo Bosetti 2024-08-08 13:26:55 +02:00
parent 547d9278d8
commit d0e10d3b73

View File

@ -49,6 +49,10 @@ function(ftxui_set_options library)
target_compile_options(${library} PUBLIC "/utf-8") target_compile_options(${library} PUBLIC "/utf-8")
endif() endif()
if(UNIX)
target_compile_options(${library} PRIVATE "-fPIC")
endif()
# Add as many warning as possible: # Add as many warning as possible:
if (WIN32) if (WIN32)
if (MSVC) if (MSVC)