Skip to content

Commit

Permalink
Fix compiling for clang and gcc version 9 and greater (#1637)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesthobe committed Dec 23, 2023
1 parent 302f11d commit 29f8e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/unix.cmake
Expand Up @@ -186,7 +186,7 @@ target_link_libraries(slade
${MPG123_LIBRARIES}
)

if(LINUX)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION LESS 9)
target_link_libraries(slade -lstdc++fs)
endif()

Expand Down

0 comments on commit 29f8e23

Please sign in to comment.