From 3883c153b20fe8c00e5bb4b40a4835da6766a027 Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Sat, 3 Jun 2023 21:45:25 +0200 Subject: [PATCH] Enable builds on Windows --- recipes/ants/bld.bat | 18 ++++++++++++++++++ recipes/ants/meta.yaml | 1 - 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 recipes/ants/bld.bat diff --git a/recipes/ants/bld.bat b/recipes/ants/bld.bat new file mode 100644 index 0000000000000..47b89c1045fae --- /dev/null +++ b/recipes/ants/bld.bat @@ -0,0 +1,18 @@ +mkdir build +if errorlevel 1 exit 1 +cd build +if errorlevel 1 exit 1 + +cmake -G Ninja ^ + %CMAKE_ARGS% ^ + -DCMAKE_INSTALL_LIBDIR:STRING=%LIBRARY_LIB% ^ + -DCMAKE_INSTALL_PREFIX:STRING=%LIBRARY_PREFIX% ^ + -DCMAKE_PREFIX_PATH:STRING=%LIBRARY_PREFIX% ^ + -DBUILD_SHARED_LIBS:BOOL=ON ^ + -DANTS_SUPERBUILD:BOOL=OFF ^ + -DUSE_SYSTEM_ITK:BOOL=ON ^ + %SRC_DIR% +if errorlevel 1 exit 1 + +cmake --build . --config RelWithDebInfo --parallel %CPU_COUNT% --target install +if errorlevel 1 exit 1 diff --git a/recipes/ants/meta.yaml b/recipes/ants/meta.yaml index ba0cd9466f2ef..fc74d32b80e45 100644 --- a/recipes/ants/meta.yaml +++ b/recipes/ants/meta.yaml @@ -11,7 +11,6 @@ source: build: number: 0 - skip: true # [win] requirements: build: