Tribits macro assumes build directory is in top level source directory #654
Labels
Enhancement
Improve existing capability; will potentially require voting
Milestone
At line 511 of cmake/tribits.cmake you can see
ADD_SUBDIRECTORY(${CMAKE_BINARY_DIR}/../${SUBPACKAGE_DIR})
This is assuming that the build directory is a subfolder of the kokkos top level source dir. If it's not the case, cmake does not find ${SUBPACKAGE_DIR} and errors out.
I would replace that line with
ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/${SUBPACKAGE_DIR})
allowing the user to build the library wherever he wants.
Of course, unless I am missing some crucial detail about the tribits working flow...
The text was updated successfully, but these errors were encountered: