From 66dc948d2daec1ff0a4bb3279fa39bb2089a9103 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Thu, 23 May 2024 14:50:32 +0800 Subject: [PATCH] msvc --- cmake/subdir.cmake | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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()