CMake: Add CMake module path for built-in Catch2 with CPM
This commit is contained in:
parent
e96752c8e8
commit
205c7440bb
@ -55,7 +55,6 @@ if (USE_CCACHE)
|
||||
list(APPEND CMAKE_MESSAGE_INDENT " ")
|
||||
message(STATUS "(set -DUSE_CCACHE=Off to disable)")
|
||||
list(POP_BACK CMAKE_MESSAGE_INDENT)
|
||||
|
||||
endif()
|
||||
|
||||
# enable compile_commands.json generation for clangd
|
||||
@ -109,6 +108,8 @@ if (ENABLE_TESTS)
|
||||
endif()
|
||||
if (Catch2_ADDED STREQUAL "YES")
|
||||
list(APPEND CMAKE_MODULE_PATH ${Catch2_SOURCE_DIR}/extras)
|
||||
else()
|
||||
list(APPEND CMAKE_MODULE_PATH ${Catch2_DIR})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user