mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-28 22:26:28 +08:00
Added -fPIC compile option on UNIX
This commit is contained in:
parent
547d9278d8
commit
d0e10d3b73
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user