diff --git a/cmake_modules/FindFilesystem.cmake b/cmake_modules/FindFilesystem.cmake index 6fc4233c66..5ed321214a 100644 --- a/cmake_modules/FindFilesystem.cmake +++ b/cmake_modules/FindFilesystem.cmake @@ -212,7 +212,7 @@ if(CXX_FILESYSTEM_HAVE_FS) ]] code @ONLY) # HACK: Needed to compile correctly on Yocto Linux - if(CMAKE_CXX_COMPILER_ID STREQUAL "GCC" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" + if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") set(CMAKE_REQUIRED_FLAGS ${prev_req_flags} -std=c++17) endif ()