You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Allow in-source build when Catch2 is used as a subproject.
Additional context
Add NOT_SUBPROJECT to the if-statement
if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)
message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt")
endif()
The text was updated successfully, but these errors were encountered:
You should not be doing in-tree build anyway, but since the reason we check is that in-tree build leads to weird errors that should not be present when Catch2 is a subdirectory, I am willing to modify the check.
Description
Allow in-source build when Catch2 is used as a subproject.
Additional context
Add
NOT_SUBPROJECT
to the if-statementThe text was updated successfully, but these errors were encountered: