mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
cmake: Link to stdc++fs on GNU compatible and Clang
This commit is contained in:
parent
a19e8d1e00
commit
910ebd91cc
1 changed files with 11 additions and 1 deletions
|
@ -495,7 +495,17 @@ if(WIN32)
|
||||||
)
|
)
|
||||||
list(APPEND PROJECT_PRIVATE_SOURCE
|
list(APPEND PROJECT_PRIVATE_SOURCE
|
||||||
"source/windll.cpp"
|
"source/windll.cpp"
|
||||||
)
|
)
|
||||||
|
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()
|
endif()
|
||||||
|
|
||||||
## OBS Studio - Frontend/Qt
|
## OBS Studio - Frontend/Qt
|
||||||
|
|
Loading…
Reference in a new issue