Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2020-01-27 14:45:20 +0300
committertamasmeszaros <meszaros.q@gmail.com>2020-01-27 14:45:20 +0300
commit9f085c133ab56294db9f7df6e9b987fb3d2b8683 (patch)
treea113a1b703e952950a7c34441b1812ba8f155de8 /cmake
parentdced3ce783c9a3a1f626bf9497fa5d611146f3bf (diff)
Try to fix cmake - openvdb on mac
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindOpenVDB.cmake12
1 files changed, 10 insertions, 2 deletions
diff --git a/cmake/modules/FindOpenVDB.cmake b/cmake/modules/FindOpenVDB.cmake
index 48f0d6655..18fecf6c5 100644
--- a/cmake/modules/FindOpenVDB.cmake
+++ b/cmake/modules/FindOpenVDB.cmake
@@ -233,7 +233,10 @@ foreach(COMPONENT ${OpenVDB_FIND_COMPONENTS})
)
if (_is_multi)
- list(APPEND OpenVDB_LIB_COMPONENTS ${OpenVDB_${COMPONENT}_LIBRARY_RELEASE} ${OpenVDB_${COMPONENT}_LIBRARY_DEBUG})
+ list(APPEND OpenVDB_LIB_COMPONENTS ${OpenVDB_${COMPONENT}_LIBRARY_RELEASE})
+ if (MSVC OR OpenVDB_${COMPONENT}_LIBRARY_DEBUG)
+ list(APPEND OpenVDB_LIB_COMPONENTS ${OpenVDB_${COMPONENT}_LIBRARY_DEBUG})
+ endif ()
list(FIND CMAKE_CONFIGURATION_TYPES "Debug" _has_debug)
@@ -538,8 +541,13 @@ foreach(COMPONENT ${OpenVDB_FIND_COMPONENTS})
if (_is_multi)
set_target_properties(OpenVDB::${COMPONENT} PROPERTIES
IMPORTED_LOCATION_RELEASE "${OpenVDB_${COMPONENT}_LIBRARY_RELEASE}"
- IMPORTED_LOCATION_DEBUG "${OpenVDB_${COMPONENT}_LIBRARY_DEBUG}"
)
+
+ if (MSVC OR OpenVDB_${COMPONENT}_LIBRARY_DEBUG)
+ set_target_properties(OpenVDB::${COMPONENT} PROPERTIES
+ IMPORTED_LOCATION_DEBUG "${OpenVDB_${COMPONENT}_LIBRARY_DEBUG}"
+ )
+ endif ()
endif ()
if (OPENVDB_USE_STATIC_LIBS)