mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-25 10:50:08 +03:00
Handle NOCONFIG case when setting locations from CMake target properties
This commit is contained in:
parent
4aa08c80b7
commit
99cba4b37b
@ -35,6 +35,7 @@ macro(select_library_location target basename)
|
||||
foreach(property IN ITEMS IMPORTED_LOCATION IMPORTED_IMPLIB)
|
||||
get_target_property(${basename}_${property}_DEBUG ${target} ${property}_DEBUG)
|
||||
get_target_property(${basename}_${property}_MINSIZEREL ${target} ${property}_MINSIZEREL)
|
||||
get_target_property(${basename}_${property}_NOCONFIG ${target} ${property}_NOCONFIG)
|
||||
get_target_property(${basename}_${property}_RELEASE ${target} ${property}_RELEASE)
|
||||
get_target_property(${basename}_${property}_RELWITHDEBINFO ${target} ${property}_RELWITHDEBINFO)
|
||||
|
||||
@ -52,6 +53,8 @@ macro(select_library_location target basename)
|
||||
set(${basename}_LIBRARY ${${basename}_${property}_MINSIZEREL})
|
||||
elseif(${basename}_${property}_DEBUG)
|
||||
set(${basename}_LIBRARY ${${basename}_${property}_DEBUG})
|
||||
elseif(${basename}_${property}_NOCONFIG)
|
||||
set(${basename}_LIBRARY ${${basename}_${property}_NOCONFIG})
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
@ -61,6 +64,7 @@ macro(select_executable_location target basename)
|
||||
if(TARGET ${target})
|
||||
get_target_property(${basename}_IMPORTED_LOCATION_DEBUG ${target} IMPORTED_LOCATION_DEBUG)
|
||||
get_target_property(${basename}_IMPORTED_LOCATION_MINSIZEREL ${target} IMPORTED_LOCATION_MINSIZEREL)
|
||||
get_target_property(${basename}_IMPORTED_LOCATION_NOCONFIG ${target} IMPORTED_LOCATION_NOCONFIG)
|
||||
get_target_property(${basename}_IMPORTED_LOCATION_RELEASE ${target} IMPORTED_LOCATION_RELEASE)
|
||||
get_target_property(${basename}_IMPORTED_LOCATION_RELWITHDEBINFO ${target} IMPORTED_LOCATION_RELWITHDEBINFO)
|
||||
|
||||
@ -72,6 +76,8 @@ macro(select_executable_location target basename)
|
||||
set(${basename}_EXECUTABLE ${${basename}_IMPORTED_LOCATION_MINSIZEREL})
|
||||
elseif(${basename}_IMPORTED_LOCATION_DEBUG)
|
||||
set(${basename}_EXECUTABLE ${${basename}_IMPORTED_LOCATION_DEBUG})
|
||||
elseif(${basename}_IMPORTED_LOCATION_NOCONFIG)
|
||||
set(${basename}_EXECUTABLE ${${basename}_IMPORTED_LOCATION_NOCONFIG})
|
||||
endif()
|
||||
endif()
|
||||
endmacro()
|
||||
|
Loading…
x
Reference in New Issue
Block a user