mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-03 00:59:47 +02:00
cmake: Fix linking failure when using the C++17 or C++TS filesystem library on macOS.
This commit is contained in:
parent
4e38cb1d30
commit
359d61e544
@ -67,10 +67,14 @@ else()
|
||||
endif()
|
||||
|
||||
if(FILESYSTEM_LIBRARY STREQUAL "CXX17")
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
target_compile_definitions(rw_interface INTERFACE "RW_FS_LIBRARY=0")
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
target_link_libraries(rw_interface INTERFACE "stdc++fs")
|
||||
endif()
|
||||
elseif(FILESYSTEM_LIBRARY STREQUAL "CXXTS")
|
||||
target_compile_definitions(rw_interface INTERFACE "RW_FS_LIBRARY=1")
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
target_link_libraries(rw_interface INTERFACE "stdc++fs")
|
||||
endif()
|
||||
elseif(FILESYSTEM_LIBRARY STREQUAL "BOOST")
|
||||
|
Loading…
Reference in New Issue
Block a user