diff --git a/CMakeLists.txt b/CMakeLists.txt index af23e8f11..d416fa2cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,7 +89,10 @@ if(NOT HAVE_CXX_ATOMICS_WITHOUT_LIB) endif() endif() -if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0) +if ( + (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0) OR + (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0) +) message(STATUS "[build] detected old gcc, manually adding -lstdc++fs") set (musikcube_LINK_LIBS ${musikcube_LINK_LIBS} stdc++fs) endif()