Skip to content

Commit 1135557

Browse files
committed
Make auto-detection work on openSUSE Leap 15.2
1 parent 106e0a7 commit 1135557

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

grantlee5/linuxdeploy-plugin-grantlee5.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,20 @@ set(imported_target "Grantlee5::defaultfilters")
6868
6969
message(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+
7185
get_property(imported_location TARGET "${imported_target}" PROPERTY IMPORTED_LOCATION_NONE)
7286
message(STATUS "Imported location: ${imported_location}")
7387

0 commit comments

Comments
 (0)