Remove stray Jerasure stuff in FindNanopb.cmake (#357)

This commit is contained in:
Florian Märkl 2020-10-29 11:43:22 +01:00 committed by GitHub
parent 6e055d3071
commit 0d653def85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,6 @@
find_package(nanopb CONFIG)
find_file(NANOPB_GENERATOR_PY nanopb_generator.py PATH_SUFFIXES bin)
find_path(Jerasure_INCLUDE_DIR NAMES pb_encode.h pb_decode.h)
find_library(Jerasure_LIBRARY NAMES Jerasure)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Nanopb
FOUND_VAR Nanopb_FOUND
@ -17,9 +14,5 @@ find_package_handle_standard_args(Nanopb
if(Nanopb_FOUND)
if(NOT TARGET Nanopb::nanopb)
add_library(Nanopb::nanopb ALIAS nanopb::protobuf-nanopb-static)
set_target_properties(Jerasure::Jerasure PROPERTIES
IMPORTED_LOCATION "${Jerasure_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${Jerasure_INCLUDE_DIRS}"
)
endif()
endif()