1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Link stdc++fs with GCC (#10522)

This commit is contained in:
Tom Lankhorst
2020-01-09 19:57:28 +01:00
committed by Aaron van Geffen
parent 2ff8a467c6
commit 6f0ea7b3c2

View File

@@ -17,6 +17,11 @@ add_library(${PROJECT_NAME} ${OPENRCT2_CORE_SOURCES} ${OPENRCT2_CORE_MM_SOURCES}
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
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 (APPLE)
# Needed for linking with non-broken OpenSSL on Apple platforms