diff --git a/MyxCMake/lib/AddInterfaceLibrary.cmake b/MyxCMake/lib/AddInterfaceLibrary.cmake index a636b18..9e87569 100644 --- a/MyxCMake/lib/AddInterfaceLibrary.cmake +++ b/MyxCMake/lib/AddInterfaceLibrary.cmake @@ -63,8 +63,8 @@ function(myx_add_interface_library TARGET_NAME) install(TARGETS ${lib} EXPORT ${TARGET_NAME}Targets COMPONENT DEV) - get_target_property(target_type ${lib} TYPE) else() + get_target_property(target_type ${lib} TYPE) if(target_type STREQUAL "OBJECT_LIBRARY") if(TARGET "${lib}_static") set(exlib "${lib}_static")