File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,6 +68,20 @@ set(imported_target "Grantlee5::defaultfilters")
6868
6969message(STATUS "Fetching imported location for target ${imported_target} ")
7070
71+ foreach(property_name IMPORTED_LOCATION_NONE IMPORTED_LOCATION_RELWITHDEBINFO)
72+ get_property(imported_location TARGET "${imported_target} " PROPERTY "${property_name} ")
73+
74+ message(STATUS "Property ${property_name} value: \"${imported_location} \"")
75+
76+ if(NOT "${imported_location} " STREQUAL "")
77+ break()
78+ endif()
79+ endforeach()
80+
81+ if("${imported_location} " STREQUAL "")
82+ message(FATAL_ERROR "Could not find location with CMake")
83+ endif()
84+
7185get_property(imported_location TARGET "${imported_target} " PROPERTY IMPORTED_LOCATION_NONE)
7286message(STATUS "Imported location: ${imported_location} ")
7387
You can’t perform that action at this time.
0 commit comments