mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-15 08:15:06 +00:00
cmake: Link to stdc++fs on GNU compatible and Clang
This commit is contained in:
parent
c6c8a66b6c
commit
e17e7f7350
1 changed files with 11 additions and 1 deletions
|
@ -497,6 +497,16 @@ if(WIN32)
|
||||||
"source/windll.cpp"
|
"source/windll.cpp"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
if((CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||||
|
OR (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
|
OR (CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||||
|
OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
|
||||||
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
|
||||||
|
list(APPEND PROJECT_LIBRARIES
|
||||||
|
"stdc++fs"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
## OBS Studio - Frontend/Qt
|
## OBS Studio - Frontend/Qt
|
||||||
if(HAVE_OBS_FRONTEND)
|
if(HAVE_OBS_FRONTEND)
|
||||||
|
|
Loading…
Reference in a new issue