|
|
|
|
@ -550,11 +550,17 @@ foreach(_component ${Magnum_FIND_COMPONENTS})
|
|
|
|
|
set(CMAKE_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES};") |
|
|
|
|
|
|
|
|
|
# Try to find both debug and release version. Dynamic and static |
|
|
|
|
# debug libraries are in different places. |
|
|
|
|
find_library(MAGNUM_${_COMPONENT}_LIBRARY_DEBUG ${_component} |
|
|
|
|
PATH_SUFFIXES magnum-d/${_MAGNUM_${_COMPONENT}_PATH_SUFFIX}) |
|
|
|
|
# debug libraries are in different places. Static debug plugins are |
|
|
|
|
# in magnum/ with a -d suffix while dynamic debug plugins are in |
|
|
|
|
# magnum-d/ with no suffix. Problem is that Vcpkg's library linking |
|
|
|
|
# automagic needs the static libs to be in the root library |
|
|
|
|
# directory along with everything else and so we need to search for |
|
|
|
|
# the -d suffixed version *before* the unsuffixed so it doesn't |
|
|
|
|
# pick the release library for both debug and release. |
|
|
|
|
find_library(MAGNUM_${_COMPONENT}_LIBRARY_DEBUG ${_component}-d |
|
|
|
|
PATH_SUFFIXES magnum/${_MAGNUM_${_COMPONENT}_PATH_SUFFIX}) |
|
|
|
|
find_library(MAGNUM_${_COMPONENT}_LIBRARY_DEBUG ${_component} |
|
|
|
|
PATH_SUFFIXES magnum-d/${_MAGNUM_${_COMPONENT}_PATH_SUFFIX}) |
|
|
|
|
find_library(MAGNUM_${_COMPONENT}_LIBRARY_RELEASE ${_component} |
|
|
|
|
PATH_SUFFIXES magnum/${_MAGNUM_${_COMPONENT}_PATH_SUFFIX}) |
|
|
|
|
mark_as_advanced(MAGNUM_${_COMPONENT}_LIBRARY_DEBUG |
|
|
|
|
|