From a042f281e0bea9fe90eb2ed91f98a2e2f408069e Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 25 Jun 2021 11:42:49 +0200 Subject: [PATCH 1/8] Create meta.yaml --- recipes/ycm-cmake-modules/meta.yaml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 recipes/ycm-cmake-modules/meta.yaml diff --git a/recipes/ycm-cmake-modules/meta.yaml b/recipes/ycm-cmake-modules/meta.yaml new file mode 100644 index 0000000000000..af5f768d59ac3 --- /dev/null +++ b/recipes/ycm-cmake-modules/meta.yaml @@ -0,0 +1,34 @@ +{% set version = "0.12.2" %} + +package: + name: ycm-cmake-modules + version: {{ version }} + +source: + url: https://github.com/robotology/ycm/archive/refs/tags/v{{ version }}.tar.gz + sha256: e18941da05bca12a796ebbeacb83993bc0f10e817fa10bb45124a421c2384690 + +build: + number: 0 + +requirements: + build: + - cmake + - {{ compiler('cxx') }} + - {{ compiler('c') }} + - ninja + +test: + commands: + - test -f ${PREFIX}/share/cmake/YCM/YCMConfig.cmake # [not win] + - if not exist %PREFIX%\\Library\\share\\cmake\\YCM\\YCMConfig.cmake exit 1 # [win] + +about: + home: https://github.com/robotology/ycm + license: BSD-3-Clause + license_file: LICENSE + summary: Extra CMake Modules for YARP and friends. + +extra: + recipe-maintainers: + - traversaro From 081c5f72cd1396b03fcd6f840a78b0b948f97591 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 25 Jun 2021 11:43:41 +0200 Subject: [PATCH 2/8] Create bld.bat --- recipes/ycm-cmake-modules/bld.bat | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 recipes/ycm-cmake-modules/bld.bat diff --git a/recipes/ycm-cmake-modules/bld.bat b/recipes/ycm-cmake-modules/bld.bat new file mode 100644 index 0000000000000..34675f66190a8 --- /dev/null +++ b/recipes/ycm-cmake-modules/bld.bat @@ -0,0 +1,22 @@ +mkdir build +cd build + +cmake ^ + -G "Ninja" ^ + -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ + -DCMAKE_BUILD_TYPE=Release ^ + -DBUILD_TESTING=ON ^ + %SRC_DIR% +if errorlevel 1 exit 1 + +:: Build. +cmake --build . --config Release +if errorlevel 1 exit 1 + +:: Install. +cmake --build . --config Release --target install +if errorlevel 1 exit 1 + +:: Test. +ctest -C Release +if errorlevel 1 exit 1 From db02bec2f85867691f57ef43992d910de00c7ada Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 25 Jun 2021 11:44:07 +0200 Subject: [PATCH 3/8] Create build.sh --- recipes/ycm-cmake-modules/build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 recipes/ycm-cmake-modules/build.sh diff --git a/recipes/ycm-cmake-modules/build.sh b/recipes/ycm-cmake-modules/build.sh new file mode 100644 index 0000000000000..f693586684616 --- /dev/null +++ b/recipes/ycm-cmake-modules/build.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +mkdir build +cd build + +cmake ${CMAKE_ARGS} -GNinja .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=ON + +cmake --build . --config Release +cmake --build . --config Release --target install +ctest --output-on-failure -C Release From a4f27a25951ebff1b085e3d1427bdd8307baf8ac Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 25 Jun 2021 11:50:58 +0200 Subject: [PATCH 4/8] Update meta.yaml --- recipes/ycm-cmake-modules/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/ycm-cmake-modules/meta.yaml b/recipes/ycm-cmake-modules/meta.yaml index af5f768d59ac3..6531f9cb1510b 100644 --- a/recipes/ycm-cmake-modules/meta.yaml +++ b/recipes/ycm-cmake-modules/meta.yaml @@ -6,7 +6,7 @@ package: source: url: https://github.com/robotology/ycm/archive/refs/tags/v{{ version }}.tar.gz - sha256: e18941da05bca12a796ebbeacb83993bc0f10e817fa10bb45124a421c2384690 + sha256: 42afdd754ba69a9d9b30279be3525bd9aefc8189ae5012701f37edf7be7e194d build: number: 0 From 51db88b972d7b25379a9a45a33cca5bf4f27ad84 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 25 Jun 2021 12:04:45 +0200 Subject: [PATCH 5/8] Update bld.bat --- recipes/ycm-cmake-modules/bld.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/ycm-cmake-modules/bld.bat b/recipes/ycm-cmake-modules/bld.bat index 34675f66190a8..6cb97e9faddf8 100644 --- a/recipes/ycm-cmake-modules/bld.bat +++ b/recipes/ycm-cmake-modules/bld.bat @@ -18,5 +18,5 @@ cmake --build . --config Release --target install if errorlevel 1 exit 1 :: Test. -ctest -C Release +ctest --output-on-failure -C Release if errorlevel 1 exit 1 From 669f7b1ed354dd707dd64e25eb4d7ada6c908956 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 25 Jun 2021 13:26:12 +0200 Subject: [PATCH 6/8] Update bld.bat --- recipes/ycm-cmake-modules/bld.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/ycm-cmake-modules/bld.bat b/recipes/ycm-cmake-modules/bld.bat index 6cb97e9faddf8..77ca3c04277cc 100644 --- a/recipes/ycm-cmake-modules/bld.bat +++ b/recipes/ycm-cmake-modules/bld.bat @@ -18,5 +18,6 @@ cmake --build . --config Release --target install if errorlevel 1 exit 1 :: Test. -ctest --output-on-failure -C Release +:: Some tests disabled for https://github.com/robotology/ycm/issues/382 +ctest --output-on-failure -C Release -E "YCMBootstrap-not-use-system|YCMBootstrap-disable-find|RunCMake.IncludeUrl" if errorlevel 1 exit 1 From 5964a84f81e5c24168b4277eae3382b5996f5c7a Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 25 Jun 2021 13:26:41 +0200 Subject: [PATCH 7/8] Update build.sh --- recipes/ycm-cmake-modules/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/ycm-cmake-modules/build.sh b/recipes/ycm-cmake-modules/build.sh index f693586684616..3d1d64a20b4ac 100644 --- a/recipes/ycm-cmake-modules/build.sh +++ b/recipes/ycm-cmake-modules/build.sh @@ -9,4 +9,5 @@ cmake ${CMAKE_ARGS} -GNinja .. \ cmake --build . --config Release cmake --build . --config Release --target install -ctest --output-on-failure -C Release +# Some tests disabled due to https://github.com/robotology/ycm/issues/382 +ctest --output-on-failure -C Release -E "YCMBootstrap-not-use-system|YCMBootstrap-disable-find|RunCMake.IncludeUrl" From ac34ed5a18d69c9522b9a09cd4cc95752c781402 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 25 Jun 2021 14:19:40 +0200 Subject: [PATCH 8/8] Update meta.yaml --- recipes/ycm-cmake-modules/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/ycm-cmake-modules/meta.yaml b/recipes/ycm-cmake-modules/meta.yaml index 6531f9cb1510b..bb0c3a0ca08fa 100644 --- a/recipes/ycm-cmake-modules/meta.yaml +++ b/recipes/ycm-cmake-modules/meta.yaml @@ -26,7 +26,7 @@ test: about: home: https://github.com/robotology/ycm license: BSD-3-Clause - license_file: LICENSE + license_file: Copyright.txt summary: Extra CMake Modules for YARP and friends. extra: