mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
Merge topic 'import-cppdap'
4a84f71049ci: Provide cppdap in extdeps jobs5ec69eb58ccppdap: Build as part of CMake or use external installation3381e6bd5cMerge branch 'upstream-cppdap' into import-cppdap1daeefc378cppdap 2023-05-26 (03cc1867)bd58bc7817cppdap: Add script to import version as of 2023-05-25172045b53bjsoncpp: Add cm3p/ headers for json/json.h and json/forwards.h Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !8342
This commit is contained in:
@@ -376,3 +376,19 @@ if(BUILD_CursesDialog)
|
||||
message(FATAL_ERROR "CMAKE_USE_SYSTEM_FORM in ON but CURSES_FORM_LIBRARY is not set!")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# Build cppdap library.
|
||||
if(CMake_ENABLE_CPPDAP)
|
||||
if(CMAKE_USE_SYSTEM_CPPDAP)
|
||||
find_package(cppdap CONFIG)
|
||||
if(NOT cppdap_FOUND)
|
||||
message(FATAL_ERROR
|
||||
"CMAKE_USE_SYSTEM_CPPDAP is ON but a cppdap is not found!")
|
||||
endif()
|
||||
else()
|
||||
add_subdirectory(Utilities/cmcppdap)
|
||||
add_library(cppdap::cppdap ALIAS cmcppdap)
|
||||
CMAKE_SET_TARGET_FOLDER(cppdap "Utilities/3rdParty")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user