"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cmake/FindRadare2.cmake" between
cutter-1.10.2.tar.gz and cutter-1.10.3.tar.gz

About: cutter is a Qt and C++ GUI for radare2 reverse engineering framework.

FindRadare2.cmake  (cutter-1.10.2):FindRadare2.cmake  (cutter-1.10.3)
skipping to change at line 75 skipping to change at line 75
set(Radare2_LIBRARY_DIRS "") set(Radare2_LIBRARY_DIRS "")
add_library(Radare2::libr UNKNOWN IMPORTED) add_library(Radare2::libr UNKNOWN IMPORTED)
set_target_properties(Radare2::libr PROPERTIES set_target_properties(Radare2::libr PROPERTIES
IMPORTED_LOCATION "${Radare2_LIBRARY_core}" IMPORTED_LOCATION "${Radare2_LIBRARY_core}"
IMPORTED_LINK_INTERFACE_LIBRARIES "${Radare2_LIBRARIES}" IMPORTED_LINK_INTERFACE_LIBRARIES "${Radare2_LIBRARIES}"
INTERFACE_LINK_DIRECTORIES "${Radare2_LIBRARY_DIRS}" INTERFACE_LINK_DIRECTORIES "${Radare2_LIBRARY_DIRS}"
INTERFACE_INCLUDE_DIRECTORIES "${Radare2_INCLUDE_DIRS}") INTERFACE_INCLUDE_DIRECTORIES "${Radare2_INCLUDE_DIRS}")
set(Radare2_TARGET Radare2::libr) set(Radare2_TARGET Radare2::libr)
else() else()
# support sys/user.sh install # support installation locations used by r2 scripts like sys/user.sh and
set(Radare2_CMAKE_PREFIX_PATH_TEMP ${CMAKE_PREFIX_PATH}) sys/install.sh
list(APPEND CMAKE_PREFIX_PATH "$ENV{HOME}/bin/prefix/radare2") if(CUTTER_USE_ADDITIONAL_RADARE2_PATHS)
set(Radare2_CMAKE_PREFIX_PATH_TEMP ${CMAKE_PREFIX_PATH})
list(APPEND CMAKE_PREFIX_PATH "$ENV{HOME}/bin/prefix/radare2") #
sys/user.sh
list(APPEND CMAKE_PREFIX_PATH "/usr/local") # sys/install.sh
endif()
find_package(PkgConfig REQUIRED) find_package(PkgConfig REQUIRED)
pkg_search_module(Radare2 IMPORTED_TARGET REQUIRED r_core) if(CMAKE_VERSION VERSION_LESS "3.6")
pkg_search_module(Radare2 REQUIRED r_core)
else()
pkg_search_module(Radare2 IMPORTED_TARGET REQUIRED r_core)
endif()
# reset CMAKE_PREFIX_PATH # reset CMAKE_PREFIX_PATH
set(CMAKE_PREFIX_PATH ${Radare2_CMAKE_PREFIX_PATH_TEMP}) if(CUTTER_USE_ADDITIONAL_RADARE2_PATHS)
mark_as_advanced(Radare2_CMAKE_PREFIX_PATH_TEMP) set(CMAKE_PREFIX_PATH ${Radare2_CMAKE_PREFIX_PATH_TEMP})
endif()
if(TARGET PkgConfig::Radare2) if((TARGET PkgConfig::Radare2) AND (NOT CMAKE_VERSION VERSION_LESS "3.11.
if (CMAKE_VERSION VERSION_LESS "3.11.0") 0"))
add_library(Radare2::libr INTERFACE IMPORTED) set_target_properties(PkgConfig::Radare2 PROPERTIES IMPORTED_GLOB
set_target_properties(Radare2::libr PROPERTIES AL ON)
INTERFACE_INCLUDE_DIRECTORIES "${Radare2_INCLUDE_DIRS add_library(Radare2::libr ALIAS PkgConfig::Radare2)
}") set(Radare2_TARGET Radare2::libr)
set_target_properties(Radare2::libr PROPERTIES elseif(Radare2_FOUND)
INTERFACE_LINK_LIBRARIES "${Radare2_LIBRARIES}") add_library(Radare2::libr INTERFACE IMPORTED)
link_directories("${Radare2_LIBDIR}") # target specific l set_target_properties(Radare2::libr PROPERTIES
ink directory or flags require even newer cmake INTERFACE_INCLUDE_DIRECTORIES "${Radare2_INCLUDE_DIRS}")
else() set_target_properties(Radare2::libr PROPERTIES
set_target_properties(PkgConfig::Radare2 PROPERTIES IMPOR INTERFACE_LINK_LIBRARIES "${Radare2_LIBRARIES}")
TED_GLOBAL ON)
add_library(Radare2::libr ALIAS PkgConfig::Radare2)
endif()
set(Radare2_TARGET Radare2::libr) set(Radare2_TARGET Radare2::libr)
else()
set(Radare2_TARGET Radare2_TARGET-NOTFOUND)
endif() endif()
endif() endif()
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Radare2 REQUIRED_VARS Radare2_TARGET Radare2_L IBRARIES Radare2_INCLUDE_DIRS) find_package_handle_standard_args(Radare2 REQUIRED_VARS Radare2_TARGET Radare2_L IBRARIES Radare2_INCLUDE_DIRS)
mark_as_advanced(Radare2_LIBRARIES_VARS Radare2_CORE_LIBRARY Radare2_TARGET)
 End of changes. 7 change blocks. 
24 lines changed or deleted 28 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)