cmake: Link to stdc++fs on GNU compatible and Clang

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-04-23 01:12:45 +02:00 committed by Michael Fabian Dirks
parent c6c8a66b6c
commit e17e7f7350

View file

@ -495,7 +495,17 @@ if(WIN32)
)
list(APPEND PROJECT_PRIVATE_SOURCE
"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()
## OBS Studio - Frontend/Qt