mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
deps-jansson: Enable -fPIC for non-gcc compilers
Always use -fPIC when not on WIN32 or APPLE and not just with gcc. This allows for building obs with clang on linux and FreeBSD without explicitly specifying -fPIC as compiler flag to cmake.
This commit is contained in:
parent
42a9a0af3e
commit
a02f2905b8
2
deps/jansson/CMakeLists.txt
vendored
2
deps/jansson/CMakeLists.txt
vendored
@ -94,7 +94,7 @@ if (MSVC)
|
||||
|
||||
endif()
|
||||
|
||||
if (NOT WIN32 AND (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX))
|
||||
if (NOT WIN32 AND NOT APPLE)
|
||||
set(CMAKE_C_FLAGS "-fPIC")
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user