diff --git a/recipe/bld.bat b/recipe/bld.bat index c62e5f0..0f4dcdf 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -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" ^ diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 4eda7a6..4b178d4 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -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: