From 388a7dabc7c2b3b8058a3c52edfc6f94a23450ff Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 4 Sep 2024 23:43:25 +0200 Subject: [PATCH 1/3] YCMEPHelper: Expose ExternalProject's CMAKE_GENERATOR_* options --- modules/YCMEPHelper.cmake | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/modules/YCMEPHelper.cmake b/modules/YCMEPHelper.cmake index cd60cf66..0db79bf4 100644 --- a/modules/YCMEPHelper.cmake +++ b/modules/YCMEPHelper.cmake @@ -25,6 +25,10 @@ A helper for :module:`ExternalProject`:: [PASSWORD ] [TRUST_CERT <0|1>] #--CMake arguments--------- + [CMAKE_GENERATOR] + [CMAKE_GENERATOR_PLATFORM] + [CMAKE_GENERATOR_TOOLSET] + [CMAKE_GENERATOR_INSTANCE] [CMAKE_ARGS] [CMAKE_CACHE_ARGS] [CMAKE_CACHE_DEFAULT_ARGS] @@ -912,7 +916,11 @@ function(YCM_EP_HELPER _name) TEST_AFTER_INSTALL TEST_EXCLUDE_FROM_MAIN CONFIGURE_SOURCE_DIR # DEPRECATED Since YCM 0.10 - SOURCE_SUBDIR) + SOURCE_SUBDIR + CMAKE_GENERATOR + CMAKE_GENERATOR_PLATFORM + CMAKE_GENERATOR_TOOLSET + CMAKE_GENERATOR_INSTANCE) set(_multiValueArgs CMAKE_ARGS CMAKE_CACHE_ARGS CMAKE_CACHE_DEFAULT_ARGS @@ -1287,6 +1295,21 @@ submodules=${git_submodules} endif() endif() + # CMake generator parameters + unset(${_name}_CMAKE_GENERATOR_ARGS) + if(_YH_${_name}_CMAKE_GENERATOR) + list(APPEND ${_name}_CMAKE_GENERATOR_ARGS CMAKE_GENERATOR ${_YH_${_name}_CMAKE_GENERATOR}) + endif() + if(_YH_${_name}_CMAKE_GENERATOR_PLATFORM) + list(APPEND ${_name}_CMAKE_GENERATOR_ARGS CMAKE_GENERATOR_PLATFORM ${_YH_${_name}_CMAKE_GENERATOR_PLATFORM}) + endif() + if(_YH_${_name}_CMAKE_GENERATOR_TOOLSET) + list(APPEND ${_name}_CMAKE_GENERATOR_ARGS CMAKE_GENERATOR_TOOLSET ${_YH_${_name}_CMAKE_GENERATOR_TOOLSET}) + endif() + if(_YH_${_name}_CMAKE_GENERATOR_INSTANCE) + list(APPEND ${_name}_CMAKE_GENERATOR_ARGS CMAKE_GENERATOR_INSTANCE ${_YH_${_name}_CMAKE_GENERATOR_INSTANCE}) + endif() + # Test parameters unset(${_name}_TEST_ARGS) if(_YH_${_name}_TEST_BEFORE_INSTALL) @@ -1309,6 +1332,7 @@ submodules=${git_submodules} unset(${_name}_ARGS) foreach(_arg IN LISTS ${_name}_REPOSITORY_ARGS ${_name}_DIR_ARGS + ${_name}_CMAKE_GENERATOR_ARGS ${_name}_ALL_CMAKE_ARGS ${_name}_DEPENDS_ARGS ${_name}_COMMAND_ARGS From d00cfc9602f35dfd2b6c28bda15b14235f11d30d Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 5 Sep 2024 09:19:55 +0200 Subject: [PATCH 2/3] Bump version to 0.16.7 --- internal-modules/YCMVersion.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal-modules/YCMVersion.cmake b/internal-modules/YCMVersion.cmake index a1905c59..716318b0 100644 --- a/internal-modules/YCMVersion.cmake +++ b/internal-modules/YCMVersion.cmake @@ -32,7 +32,7 @@ include(GitInfo) set(YCM_VERSION_MAJOR 0) set(YCM_VERSION_MINOR 16) -set(YCM_VERSION_PATCH 6) +set(YCM_VERSION_PATCH 7) set(YCM_VERSION_API "${YCM_VERSION_MAJOR}.${YCM_VERSION_MINOR}") set(YCM_VERSION_SHORT "${YCM_VERSION_MAJOR}.${YCM_VERSION_MINOR}.${YCM_VERSION_PATCH}") From f4b82a3127b14baede669787c4b2d6f884e526b5 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 5 Sep 2024 09:20:48 +0200 Subject: [PATCH 3/3] Bump version to 0.16.8 --- internal-modules/YCMVersion.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal-modules/YCMVersion.cmake b/internal-modules/YCMVersion.cmake index 716318b0..a607efd8 100644 --- a/internal-modules/YCMVersion.cmake +++ b/internal-modules/YCMVersion.cmake @@ -32,7 +32,7 @@ include(GitInfo) set(YCM_VERSION_MAJOR 0) set(YCM_VERSION_MINOR 16) -set(YCM_VERSION_PATCH 7) +set(YCM_VERSION_PATCH 8) set(YCM_VERSION_API "${YCM_VERSION_MAJOR}.${YCM_VERSION_MINOR}") set(YCM_VERSION_SHORT "${YCM_VERSION_MAJOR}.${YCM_VERSION_MINOR}.${YCM_VERSION_PATCH}")