Skip to content

Commit

Permalink
windows
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed May 9, 2024
1 parent db06691 commit a9d54fe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
8 changes: 0 additions & 8 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
setlocal EnableDelayedExpansion

:: Configure using the CMakeFiles
cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_BUILD_TYPE:STRING=Release ^
..
if errorlevel 1 exit 1

cmake -B build ^
-G "NMake Makefiles" ^
-DSUITESPARSE_ENABLE_PROJECTS="suitesparse_config;amd;btf;camd;ccolamd;colamd;cholmod;cxsparse;ldl;klu;umfpack;paru;rbio;spqr;spex" ^
Expand Down
29 changes: 17 additions & 12 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,24 @@ requirements:
test:
commands:
# graphblas and mongoose are omitted
- test ! -f ${PREFIX}/bin/mongoose
- test ! -f ${PREFIX}/include/GraphBLAS.h
- test ! -f ${PREFIX}/include/Mongoose.hpp
- test ! -f ${PREFIX}/lib/libgraphblas${SHLIB_EXT}
- test ! -f ${PREFIX}/lib/libmongoose${SHLIB_EXT}
- test ! -f ${PREFIX}/lib/libgraphblas.a
- test ! -f ${PREFIX}/lib/libmongoose.a

- test -f ${PREFIX}/include/suitesparse/amd.h
- test -f ${PREFIX}/include/suitesparse/umfpack.h
- test ! -f ${PREFIX}/bin/mongoose # [not win]
- test ! -f ${PREFIX}/include/GraphBLAS.h # [not win]
- test ! -f ${PREFIX}/include/Mongoose.hpp # [not win]
- test ! -f ${PREFIX}/lib/libgraphblas${SHLIB_EXT} # [not win]
- test ! -f ${PREFIX}/lib/libmongoose${SHLIB_EXT} # [not win]
- test ! -f ${PREFIX}/lib/libgraphblas.a # [not win]
- test ! -f ${PREFIX}/lib/libmongoose.a # [not win]

- test -f ${PREFIX}/include/suitesparse/amd.h # [not win]
- test -f ${PREFIX}/include/suitesparse/umfpack.h # [not win]
- if not exist %LIBRARY_PREFIX%\include\suitesparse\amd.h exit 1 # [win]
- if not exist %LIBRARY_PREFIX%\include\suitesparse\umfpack.h exit 1 # [win]

{% for name in ['amd', 'btf', 'camd', 'ccolamd', 'cholmod', 'colamd', 'cxsparse', 'klu', 'ldl', 'rbio', 'spqr', 'suitesparseconfig', 'umfpack'] %}
- test -f ${PREFIX}/lib/lib{{ name }}${SHLIB_EXT}
- test ! -f ${PREFIX}/lib/lib{{ name }}.a
- test -f ${PREFIX}/lib/lib{{ name }}${SHLIB_EXT} # [not win]
- test ! -f ${PREFIX}/lib/lib{{ name }}.a # [not win]
- if not exist %LIBRARY_PREFIX%\\bin\\{{ each_lib }}.dll exit 1 # [win]
- if not exist %LIBRARY_PREFIX%\\lib\\{{ each_lib }}.lib exit 1 # [win]
{% endfor %}

about:
Expand Down

0 comments on commit a9d54fe

Please sign in to comment.