diff options
| author | Silvio Traversaro <silvio@traversaro.it> | 2020-09-15 02:13:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-14 17:13:33 -0700 |
| commit | f1bef4aa7ca7e2a6ea4f5dfe4850d95fce60b431 (patch) | |
| tree | 7de4dcfec96ecb6cf3d9419c24ba0045f318a71e /ports/dartsim/1497.patch | |
| parent | 47c0b1ce4001f79cacedda39c700256ccb73ba76 (diff) | |
| download | vcpkg-f1bef4aa7ca7e2a6ea4f5dfe4850d95fce60b431.tar.gz vcpkg-f1bef4aa7ca7e2a6ea4f5dfe4850d95fce60b431.zip | |
[dartsim] Add new port (#13320)
* [dartsim] Add new port
* Update vcpkg.json
* Update vcpkg.json
* Update vcpkg.json
Diffstat (limited to 'ports/dartsim/1497.patch')
| -rw-r--r-- | ports/dartsim/1497.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ports/dartsim/1497.patch b/ports/dartsim/1497.patch new file mode 100644 index 000000000..3f2b6b5b3 --- /dev/null +++ b/ports/dartsim/1497.patch @@ -0,0 +1,50 @@ +From 9fde9124927789ca2399f99c1be9b101ed1e8550 Mon Sep 17 00:00:00 2001 +From: Silvio Traversaro <silvio.traversaro@iit.it> +Date: Thu, 3 Sep 2020 17:28:01 +0200 +Subject: [PATCH] CMake: Add DART_SKIP_<dep> advanced option + +Add DART_SKIP_<dep> option to permit to specify that +a dependecy should not used even if it is found in the system. +--- + cmake/DARTMacros.cmake | 21 ++++++++++++++------- + 1 file changed, 14 insertions(+), 7 deletions(-) + +diff --git a/cmake/DARTMacros.cmake b/cmake/DARTMacros.cmake +index 8b1a89292ee..409b02bd742 100644 +--- a/cmake/DARTMacros.cmake ++++ b/cmake/DARTMacros.cmake +@@ -127,7 +127,9 @@ endfunction() + + #=============================================================================== + macro(dart_check_optional_package variable component dependency) +- if(${${variable}_FOUND}) ++ option(DART_SKIP_${variable} "If ON, do not use ${variable} even if it is found." OFF) ++ mark_as_advanced(DART_SKIP_${variable}) ++ if(${${variable}_FOUND} AND NOT ${DART_SKIP_${variable}}) + set(HAVE_${variable} TRUE CACHE BOOL "Check if ${variable} found." FORCE) + if(DART_VERBOSE) + message(STATUS "Looking for ${dependency} - version ${${variable}_VERSION}" +@@ -135,12 +137,17 @@ macro(dart_check_optional_package variable component dependency) + endif() + else() + set(HAVE_${variable} FALSE CACHE BOOL "Check if ${variable} found." FORCE) +- if(ARGV3) # version +- message(STATUS "Looking for ${dependency} - NOT found, to use" +- " ${component}, please install ${dependency} (>= ${ARGV3})") +- else() +- message(STATUS "Looking for ${dependency} - NOT found, to use" +- " ${component}, please install ${dependency}") ++ if(NOT ${${variable}_FOUND}) ++ if(ARGV3) # version ++ message(STATUS "Looking for ${dependency} - NOT found, to use" ++ " ${component}, please install ${dependency} (>= ${ARGV3})") ++ else() ++ message(STATUS "Looking for ${dependency} - NOT found, to use" ++ " ${component}, please install ${dependency}") ++ endif() ++ elseif(${DART_SKIP_${variable}} AND DART_VERBOSE) ++ message(STATUS "Not using ${dependency} - version ${${variable}_VERSION}" ++ " even if found because DART_SKIP_${variable} is ON.") + endif() + return() + endif() |
