this is getting hairy

pull/715/head
Rick V 5 years ago
parent 54d4932d74
commit c5aaefa7e7
No known key found for this signature in database
GPG Key ID: C0EDC8723FDC3465

@ -19,9 +19,10 @@ if(NOT MSVC_VERSION)
add_compile_options(-fno-ident -Wa,-mbig-obj)
link_libraries( -lshlwapi -ldbghelp )
add_definitions(-DWINVER=0x0500 -D_WIN32_WINNT=0x0500)
find_library(FS_LIB_NAME stdc++fs)
if(NOT FS_LIB_NAME STREQUAL FS_LIB_NAME-NOTFOUND)
set(FS_LIB ${FS_LIB_NAME})
# Wait a minute, if we're not Microsoft C++, nor a Clang paired with Microsoft C++,
# then the only possible option has to be GNU or a GNU-linked Clang!
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.0 OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(FS_LIB stdc++fs)
endif()
endif()

Loading…
Cancel
Save