Skip to content

Commit

Permalink
GraphBLAS: Error early if native toolchain isn't correctly configured
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Dec 22, 2023
1 parent 45b2d8c commit 9e4d6be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GraphBLAS/JITpackage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ set ( GRAPHBLAS_CROSS_TOOLCHAIN_FLAGS_NATIVE "" CACHE STRING
"list of configuration flags used for building native generator binaries when cross-compiling" )

if ( CMAKE_CROSSCOMPILING )

cmake_path ( GET PROJECT_BINARY_DIR FILENAME _subdir )
if ( ${_subdir} STREQUAL "native" )
message ( FATAL_ERROR "Native toolchain not configured correctly" )
endif ( )

include ( ExternalProject )

# Try to call CMake on this file with a native toolchain
Expand Down

0 comments on commit 9e4d6be

Please sign in to comment.