1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-26 03:16:35 +00:00

Ensure Debug version of GMock library is added to imported target

(cherry picked from commit dcf61dfe783fe808c76d102e6639ed0be77d5932)
This commit is contained in:
AnyOldName3 2021-11-13 18:19:14 +00:00
parent 10b3ca8194
commit a9877aea98

View File

@ -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