diff --git a/cmake/subdir.cmake b/cmake/subdir.cmake index 4c5b67dc5..02013f980 100644 --- a/cmake/subdir.cmake +++ b/cmake/subdir.cmake @@ -22,7 +22,7 @@ endif() foreach(child ${children}) get_filename_component(subdir_name ${child} NAME) string(TOUPPER ${subdir_name} subdir_name) - if((${subdir_name} STREQUAL "STRUCT_PACK" OR ${subdir_name} STREQUAL "STRUCT_PB") AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")) + if((${subdir_name} STREQUAL "STRUCT_PACK" OR ${subdir_name} STREQUAL "STRUCT_PB") AND (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")) message(STATUS "skip ${subdir_name}") continue() endif()