Mercurial > hg > orthanc-python
changeset 280:1f9a6ecb2e90
report error if system-wide header cannot be found
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Tue, 12 Aug 2025 16:59:53 +0200 |
| parents | 66768d476400 |
| children | 5e9435abe2ee 8b408bda78e6 |
| files | CMakeLists.txt |
| diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Tue Aug 12 16:54:57 2025 +0200 +++ b/CMakeLists.txt Tue Aug 12 16:59:53 2025 +0200 @@ -235,6 +235,11 @@ /usr/local/ PATH_SUFFIXES include/orthanc ) + + if (${ORTHANC_SDK_SYSTEM_DIR} STREQUAL "ORTHANC_SDK_SYSTEM_DIR-NOTFOUND") + message(FATAL_ERROR "Cannot locate the orthanc/OrthancCPlugin.h header") + endif() + set(ORTHANC_SDK ${ORTHANC_SDK_SYSTEM_DIR}/OrthancCPlugin.h) endif()
