mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
cmake: Compile option to fix libcaption linking
This commit is contained in:
parent
e582a60899
commit
5483de10ee
4
deps/libcaption/CMakeLists.txt
vendored
4
deps/libcaption/CMakeLists.txt
vendored
|
@ -5,6 +5,10 @@ if (WIN32)
|
|||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
add_compile_options("-fPIC")
|
||||
endif()
|
||||
|
||||
# Don't need to prefix local includes with "caption/*"
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/caption)
|
||||
|
||||
|
|
Loading…
Reference in a new issue