diff --git a/cmake/subdir.cmake b/cmake/subdir.cmake index 7c33792b6..2cab85fec 100644 --- a/cmake/subdir.cmake +++ b/cmake/subdir.cmake @@ -28,6 +28,11 @@ 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")) + message(STATUS "skip ${subdir_name}") + continue() + endif() + if (BUILD_${subdir_name}) if(BUILD_EXAMPLES AND EXISTS ${child}/examples) add_subdirectory(${child}/examples)