Forward CMake configs to Cargo

This commit is contained in:
Henrik Hørlück Berg
2023-08-18 06:57:56 +02:00
committed by Fabian Boehm
parent 5db08e1126
commit e4df340f43
2 changed files with 13 additions and 0 deletions

View File

@@ -67,6 +67,10 @@ corrosion_set_env_vars(${fish_rust_target}
"PREFIX=${CMAKE_INSTALL_PREFIX}"
# Temporary hack to propogate CMake flags/options to build.rs.
"CMAKE_WITH_GETTEXT=${CMAKE_WITH_GETTEXT}"
"DOCDIR=${DOCDIR}"
"DATADIR=${DATADIR}"
"SYSCONFDIR=${SYSCONFDIR}"
"BINDIR=${BINDIR}"
)
# this needs an extra fish-rust due to the poor source placement