Skip to content

Commit

Permalink
GraphBLAS: Override GrBJITPackageGenerator_DIR when cross-compiling.
Browse files Browse the repository at this point in the history
Fixes #729.
Thanks to @jschueller for tracking this down.
  • Loading branch information
mmuetzel committed Jan 17, 2024
1 parent 5966e4b commit 08bb8de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GraphBLAS/JITpackage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ if ( CMAKE_CROSSCOMPILING )
CMAKE_ARGS ${GRAPHBLAS_CROSS_TOOLCHAIN_FLAGS_NATIVE}
INSTALL_COMMAND "" )

# Overriding this variable seems to be necessary if users set
# CMAKE_FIND_ROOT_PATH_MODE_PACKAGE to ONLY.
# See: https://github.com/DrTimothyAldenDavis/SuiteSparse/issues/729
set( GrBJITPackageGenerator_DIR ${PROJECT_BINARY_DIR}/native )

# The following package won't be found on the first run (before the native
# grb_jitpackage has been built). But it should be found after the above
# external project has built it.
Expand Down

0 comments on commit 08bb8de

Please sign in to comment.