From 5c3daea14a070a2c111b07f32c2e65971816e8c2 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Thu, 23 May 2024 14:39:22 +0800 Subject: [PATCH] msvc --- cmake/subdir.cmake | 5 +++++ 1 file changed, 5 insertions(+) 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)