Fix invalid CMake package on windows because of missing IMPORTED_IMPLIB

This commit is contained in:
Olivier Goffart 2021-11-16 16:09:42 +01:00
parent 8a3b064b58
commit 7bf3fd2871

View file

@ -180,7 +180,8 @@ set(SIXTYFPS_LIB_PROPERTIES "")
foreach(prop foreach(prop
IMPORTED_LOCATION IMPORTED_LOCATION_DEBUG IMPORTED_LOCATION_RELEASE IMPORTED_LOCATION IMPORTED_LOCATION_DEBUG IMPORTED_LOCATION_RELEASE
IMPORTED_LOCATION_RELWITHDEBINFO IMPORTED_LOCATION_MINSIZEREL IMPORTED_LOCATION_RELWITHDEBINFO IMPORTED_LOCATION_MINSIZEREL
IMPORTED_IMPLIB IMPORTED_IMPLIB_DEBUG IMPORTED_IMPLIB_RELEASE) IMPORTED_IMPLIB IMPORTED_IMPLIB_DEBUG IMPORTED_IMPLIB_RELEASE
IMPORTED_IMPLIB_RELWITHDEBINFO IMPORTED_IMPLIB_MINSIZEREL)
get_target_property(value sixtyfps-cpp-shared ${prop}) get_target_property(value sixtyfps-cpp-shared ${prop})
if(value) if(value)
get_filename_component(value ${value} NAME) get_filename_component(value ${value} NAME)