Ensure Debug version of GMock library is added to imported target

(cherry picked from commit dcf61dfe783fe808c76d102e6639ed0be77d5932)
switch-to-ppa
AnyOldName3 3 years ago
parent 10b3ca8194
commit a9877aea98

@ -164,8 +164,16 @@ find_dependency(Threads)
set_target_properties(GMock::GMock PROPERTIES
INTERFACE_LINK_LIBRARIES "Threads::Threads"
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
IMPORTED_LOCATION "${GMOCK_LIBRARY}")
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX")
if(EXISTS "${GMOCK_LIBRARY}")
set_target_properties(GMock::GMock PROPERTIES
IMPORTED_LOCATION "${GMOCK_LIBRARY}")
endif()
if(EXISTS "${GMOCK_LIBRARY_DEBUG}")
set_target_properties(GMock::GMock PROPERTIES
IMPORTED_LOCATION_DEBUG "${GMOCK_LIBRARY_DEBUG}")
endif()
if(GMOCK_INCLUDE_DIR)
set_target_properties(GMock::GMock PROPERTIES

Loading…
Cancel
Save