Skip to content

Commit

Permalink
Fix compiler check.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Oct 3, 2023
1 parent 6f6eae5 commit a3c5d07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/preprocess_h2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ macro(check_and_set_compiler_flag FLAG)
endmacro()

macro(fast_downward_set_compiler_flags)
if(CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "AppleClang")
set(non_windows_compilers "GNU" "Clang" "AppleClang")
if(${CMAKE_CXX_COMPILER_ID} IN_LIST non_windows_compilers)
check_and_set_compiler_flag( "-std=c++20" )

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
Expand Down

0 comments on commit a3c5d07

Please sign in to comment.