diff --git a/cmake/subdir.cmake b/cmake/subdir.cmake index 2cab85fec..4c5b67dc5 100644 --- a/cmake/subdir.cmake +++ b/cmake/subdir.cmake @@ -22,18 +22,13 @@ endif() foreach(child ${children}) get_filename_component(subdir_name ${child} NAME) string(TOUPPER ${subdir_name} subdir_name) - message(STATUS "BUILD_${subdir_name}: ${BUILD_${subdir_name}}") -endforeach() - -foreach(child ${children}) - get_filename_component(subdir_name ${child} NAME) - string(TOUPPER ${subdir_name} subdir_name) - if((${subdir_name} STREQUAL "STRUCT_PB") AND (CMAKE_CXX_COMPILER_ID STREQUAL "MCVC")) + if((${subdir_name} STREQUAL "STRUCT_PACK" OR ${subdir_name} STREQUAL "STRUCT_PB") AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")) message(STATUS "skip ${subdir_name}") continue() endif() if (BUILD_${subdir_name}) + message(STATUS "BUILD_${subdir_name}: ${BUILD_${subdir_name}}") if(BUILD_EXAMPLES AND EXISTS ${child}/examples) add_subdirectory(${child}/examples) endif()