Browse Source

shared library: Link against zlib

Library is using crc32(), therefore needs to link against zlib.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
pull/17/head
Reto Schneider 4 years ago
committed by Stefano Babic
parent
commit
f4ab25ded1
  1. 5
      src/CMakeLists.txt

5
src/CMakeLists.txt

@ -19,8 +19,9 @@ ADD_LIBRARY(ubootenv_static STATIC ${libubootenv_SOURCES} ${include_HEADERS})
SET_TARGET_PROPERTIES(ubootenv_static PROPERTIES OUTPUT_NAME ubootenv)
add_executable(fw_printenv fw_printenv.c)
add_executable(fw_setenv fw_setenv.c)
target_link_libraries(fw_printenv ubootenv z)
target_link_libraries(fw_setenv ubootenv z)
target_link_libraries(ubootenv z)
target_link_libraries(fw_printenv ubootenv)
target_link_libraries(fw_setenv ubootenv)
install (TARGETS ubootenv ubootenv_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
install (FILES libuboot.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

Loading…
Cancel
Save