From 99d2ead236f9f50fb4d0a2333814798fac963f3e Mon Sep 17 00:00:00 2001 From: monamimani Date: Mon, 3 Jun 2024 04:06:20 -0400 Subject: [PATCH] Removing from compilation code that the older compiler from the build machine can't compile yet. --- CMakeLists.txt | 6 +++++- Projects/CodeIncubator/CMakeLists.txt | 19 ++++++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a9b618..a5859c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,8 +15,12 @@ include(CMake/GetCPM.cmake) cmake_print_variables(CMAKE_VERSION) +#if(MSVC) +# set_target_properties(LLVMInstallDir PROPERTIES VS_GLOBAL_LLVMInstallDir "C:/Program Files/LLVM/bin") +#endif() + # cmake_print_variables(CMAKE_MODULE_PATH) -# set(CMAKE_VERBOSE_MAKEFILE ON) +#set(CMAKE_VERBOSE_MAKEFILE ON) # get_filename_component(WorkspaceName ${CMAKE_SOURCE_DIR} NAME) # string(REPLACE " " "_" WorkspaceName ${WorkspaceName}) diff --git a/Projects/CodeIncubator/CMakeLists.txt b/Projects/CodeIncubator/CMakeLists.txt index d2106f5..a1276db 100644 --- a/Projects/CodeIncubator/CMakeLists.txt +++ b/Projects/CodeIncubator/CMakeLists.txt @@ -4,14 +4,27 @@ project(CodeIncubator get_filename_component(targetName ${CMAKE_CURRENT_LIST_DIR} NAME) +list(APPEND unssuportedSources +) + +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "19.41.33901.0") + list(APPEND unssuportedSources + CoroErrorManagement/CoroErrorManagementUtilities.h + CoroErrorManagement/CoroErrorManagementUtilities.cpp + CoroErrorManagement/CoroResult.h + ) + endif() +endif() + + list(APPEND interfaceSources ) list(APPEND publicSources ) list(APPEND privateSources - CoroErrorManagement/CoroErrorManagementUtilities.h - CoroErrorManagement/CoroErrorManagementUtilities.cpp - CoroErrorManagement/CoroResult.h + ${unssuportedSources} + ) list(APPEND publicCxxModules )