mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 00:39:00 +08:00
1abfae8a3d
Fix link the dependency libraries in debug configuration. This commit will fixed a problem that linking dependency libraries of release version in debug configuration.
24 lines
851 B
Diff
24 lines
851 B
Diff
diff --git a/CMake/vtkModuleMacros.cmake b/CMake/vtkModuleMacros.cmake
|
|
index fdd83ed8fc..4986582a5b 100644
|
|
--- a/CMake/vtkModuleMacros.cmake
|
|
+++ b/CMake/vtkModuleMacros.cmake
|
|
@@ -885,18 +885,6 @@ macro(vtk_module_third_party _pkg)
|
|
set(vtk${_lower}_DEFINITIONS ${${_upper}_DEFINITIONS})
|
|
endif()
|
|
|
|
- #a workaround for bad FindHDF5 behavior in which deb or opt can
|
|
- #end up empty. cmake >= 2.8.12.2 makes this uneccessary
|
|
- string(REGEX MATCH "debug;.*optimized;.*"
|
|
- _remove_deb_opt "${vtk${_lower}_LIBRARIES}")
|
|
- if (_remove_deb_opt)
|
|
- set(_tmp ${vtk${_lower}_LIBRARIES})
|
|
- list(REMOVE_ITEM _tmp "debug")
|
|
- list(REMOVE_ITEM _tmp "optimized")
|
|
- list(REMOVE_DUPLICATES _tmp)
|
|
- set(vtk${_lower}_LIBRARIES ${_tmp})
|
|
- endif()
|
|
-
|
|
set(vtk${_lower}_INCLUDE_DIRS "")
|
|
else()
|
|
if(_nolibs)
|