mirror of https://github.com/OpenRCT2/OpenRCT2.git
Link stdc++fs with GCC (#10522)
This commit is contained in:
parent
2ff8a467c6
commit
6f0ea7b3c2
|
@ -17,6 +17,11 @@ add_library(${PROJECT_NAME} ${OPENRCT2_CORE_SOURCES} ${OPENRCT2_CORE_MM_SOURCES}
|
||||||
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
|
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
|
||||||
SET_CHECK_CXX_FLAGS(${PROJECT_NAME})
|
SET_CHECK_CXX_FLAGS(${PROJECT_NAME})
|
||||||
|
|
||||||
|
# GCC likes us to pass the -lstdc++fs flag to link C++17 filesystem implementation.
|
||||||
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT MINGW)
|
||||||
|
target_link_libraries(${PROJECT_NAME} stdc++fs)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT DISABLE_NETWORK OR NOT DISABLE_HTTP)
|
if (NOT DISABLE_NETWORK OR NOT DISABLE_HTTP)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
# Needed for linking with non-broken OpenSSL on Apple platforms
|
# Needed for linking with non-broken OpenSSL on Apple platforms
|
||||||
|
|
Loading…
Reference in New Issue