Skip to content

Commit

Permalink
Merge pull request #15404 from traversaro/patch-8
Browse files Browse the repository at this point in the history
Add ycm-cmake-modules recipe
  • Loading branch information
chrisburr authored Jun 26, 2021
2 parents c1eeeca + ac34ed5 commit 65a1577
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
23 changes: 23 additions & 0 deletions recipes/ycm-cmake-modules/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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.
:: 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
13 changes: 13 additions & 0 deletions recipes/ycm-cmake-modules/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/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
# 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"
34 changes: 34 additions & 0 deletions recipes/ycm-cmake-modules/meta.yaml
Original file line number Diff line number Diff line change
@@ -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: 42afdd754ba69a9d9b30279be3525bd9aefc8189ae5012701f37edf7be7e194d

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: Copyright.txt
summary: Extra CMake Modules for YARP and friends.

extra:
recipe-maintainers:
- traversaro

0 comments on commit 65a1577

Please sign in to comment.