2020-08-03 06:49:20 +08:00
|
|
|
diff --git a/Modules/ThirdParty/DoubleConversion/CMakeLists.txt b/Modules/ThirdParty/DoubleConversion/CMakeLists.txt
|
|
|
|
index 16c611fd3..13978724c 100644
|
|
|
|
--- a/Modules/ThirdParty/DoubleConversion/CMakeLists.txt
|
|
|
|
+++ b/Modules/ThirdParty/DoubleConversion/CMakeLists.txt
|
2022-12-13 07:36:03 +08:00
|
|
|
@@ -9,7 +9,16 @@ mark_as_advanced(ITK_USE_SYSTEM_DOUBLECONVERSION)
|
2020-08-03 06:49:20 +08:00
|
|
|
if(ITK_USE_SYSTEM_DOUBLECONVERSION)
|
2024-07-10 22:04:36 +08:00
|
|
|
find_package(double-conversion 3.1.6 REQUIRED)
|
2020-08-03 06:49:20 +08:00
|
|
|
get_target_property(ITKDoubleConversion_INCLUDE_DIRS double-conversion::double-conversion INTERFACE_INCLUDE_DIRECTORIES)
|
|
|
|
- get_target_property(ITKDoubleConversion_LIBRARIES double-conversion::double-conversion LOCATION)
|
2022-12-13 07:36:03 +08:00
|
|
|
+ get_target_property(ITKDoubleConversion_LIBRARY_RELEASE double-conversion::double-conversion IMPORTED_IMPLIB_RELEASE)
|
|
|
|
+ if(NOT ITKDoubleConversion_LIBRARY_RELEASE)
|
|
|
|
+ get_target_property(ITKDoubleConversion_LIBRARY_RELEASE double-conversion::double-conversion IMPORTED_LOCATION_RELEASE)
|
|
|
|
+ endif()
|
|
|
|
+ get_target_property(ITKDoubleConversion_LIBRARY_DEBUG double-conversion::double-conversion IMPORTED_IMPLIB_DEBUG)
|
|
|
|
+ if(NOT ITKDoubleConversion_LIBRARY_DEBUG)
|
|
|
|
+ get_target_property(ITKDoubleConversion_LIBRARY_DEBUG double-conversion::double-conversion IMPORTED_LOCATION_DEBUG)
|
|
|
|
+ endif()
|
2020-08-03 06:49:20 +08:00
|
|
|
+ include(SelectLibraryConfigurations)
|
|
|
|
+ select_library_configurations(ITKDoubleConversion)
|
|
|
|
else()
|
|
|
|
set(ITKDoubleConversion_INCLUDE_DIRS
|
|
|
|
${ITKDoubleConversion_SOURCE_DIR}/src
|