Open milahu opened 2 years ago
now using
# find tinycbor with pkgconfig
include(FindPkgConfig)
pkg_search_module(tinycbor_build REQUIRED tinycbor-0.5.3 tinycbor>=0.5.3)
include_directories(${tinycbor_build_INCLUDE_DIRS})
add_library(tinycbor STATIC IMPORTED)
set_target_properties(tinycbor PROPERTIES IMPORTED_LOCATION ${tinycbor_build_LINK_LIBRARIES})
add_dependencies(tinycbor tinycbor_build)
# debug
message("tinycbor_build_INCLUDE_DIRS = ${tinycbor_build_INCLUDE_DIRS}")
message("tinycbor_build_LINK_LIBRARIES = ${tinycbor_build_LINK_LIBRARIES}")
message("tinycbor_build_LIBRARIES = ${tinycbor_build_LIBRARIES}")
# tinycbor_build_INCLUDE_DIRS = /nix/store/h1xb2ri81rmc0bmai5x8g4fs1ddbmggs-tinycbor-0.6.0/include/tinycbor
# tinycbor_build_LINK_LIBRARIES = /nix/store/h1xb2ri81rmc0bmai5x8g4fs1ddbmggs-tinycbor-0.6.0/lib/libtinycbor.a
# tinycbor_build_LIBRARIES = tinycbor
@milahu, we might try to fix this now, since this also breaks docs.rs/c2rust (see https://github.com/immunant/c2rust/issues/470).
somewhere in the middle of the build process,
c2rust-ast-exporter
is trying to download tinycbor v0.5.3for nixos/nix, the build must be completely offline (nixpkgs provides tinycbor v0.5.4 ...)