Skip to content

Commit

Permalink
Enable builds on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ghisvail committed Jun 3, 2023
1 parent da3583d commit 3883c15
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 18 additions & 0 deletions recipes/ants/bld.bat
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion recipes/ants/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ source:

build:
number: 0
skip: true # [win]

requirements:
build:
Expand Down

0 comments on commit 3883c15

Please sign in to comment.