Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 3a27464

Browse files
committed
CLI11 & GCC8 combo have special consideration #839
* add CLI11_HAS_FILESYSTEM=0
1 parent 511613e commit 3a27464

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CMake/config/CompilerFlagsHelpers.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,12 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang" OR ${CMAKE_SYSTEM_NAME} MATCHES "D
152152
string(APPEND CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS " ${UNDEFINED_SYMBOLS_IGNORE_FLAG}")
153153
string(APPEND CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS " ${UNDEFINED_SYMBOLS_IGNORE_FLAG}")
154154
endif()
155+
156+
# ===============================================================================
157+
# See "Note: Special instructions for GCC 8" on https://github.com/CLIUtils/CLI11
158+
# ===============================================================================
159+
if(CMAKE_CXX_COMPILER_IS_GCC
160+
AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL 8
161+
AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 9)
162+
add_compile_definitions(CLI11_HAS_FILESYSTEM=0)
163+
endif()

0 commit comments

Comments
 (0)