mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-14 00:43:50 +00:00
Ensure Debug version of GMock library is added to imported target
(cherry picked from commit dcf61dfe783fe808c76d102e6639ed0be77d5932)
This commit is contained in:
parent
10b3ca8194
commit
a9877aea98
@ -164,8 +164,16 @@ find_dependency(Threads)
|
|||||||
|
|
||||||
set_target_properties(GMock::GMock PROPERTIES
|
set_target_properties(GMock::GMock PROPERTIES
|
||||||
INTERFACE_LINK_LIBRARIES "Threads::Threads"
|
INTERFACE_LINK_LIBRARIES "Threads::Threads"
|
||||||
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX")
|
||||||
IMPORTED_LOCATION "${GMOCK_LIBRARY}")
|
|
||||||
|
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)
|
if(GMOCK_INCLUDE_DIR)
|
||||||
set_target_properties(GMock::GMock PROPERTIES
|
set_target_properties(GMock::GMock PROPERTIES
|
||||||
|
Loading…
Reference in New Issue
Block a user