From a43da9b4c2996c09614924a3a551220ee48ed891 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Sat, 13 Jan 2024 05:59:03 -0500 Subject: [PATCH] COMP: Fix lookup of DCMTK binaries for ctkDICOMApplicationTest1 on Windows Follow-up on commit 2583a4e2 ("Remove empty build command and set install command empty.", 2014-11-04) which disabled the systematic installation of DCMTK during the CTK superbuild. This commit addresses the binary lookup issue for ctkDICOMApplicationTest1 on Windows by ensuring that all configuration sub-directories are considered during the lookup. --- Applications/Testing/Cpp/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Applications/Testing/Cpp/CMakeLists.txt b/Applications/Testing/Cpp/CMakeLists.txt index f33972eecb..a828a24121 100644 --- a/Applications/Testing/Cpp/CMakeLists.txt +++ b/Applications/Testing/Cpp/CMakeLists.txt @@ -17,12 +17,16 @@ if(CTK_APP_ctkDICOMQuery AND CTK_APP_ctkDICOMRetrieve) find_program(DCMTK_DCMQRSCP_EXECUTABLE dcmqrscp PATHS ${DCMTK_DIR}/bin + PATH_SUFFIXES + ${CMAKE_CONFIGURATION_TYPES} NO_DEFAULT_PATH ) find_program(DCMTK_STORESCU_EXECUTABLE storescu PATHS ${DCMTK_DIR}/bin + PATH_SUFFIXES + ${CMAKE_CONFIGURATION_TYPES} NO_DEFAULT_PATH )