You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on nixos (zycore.nix)
both PACKAGE_PREFIX_DIR and CMAKE_INSTALL_INCLUDEDIR are absolute paths
so the resulting zycore-config.cmake looks something like
zycore_INCLUDE_DIR evals to something like /nix/store/ny0cljlv9dnbf6m123mlcr0n2v1bp08q-zycore-c-1.5.0//nix/store/ny0cljlv9dnbf6m123mlcr0n2v1bp08q-zycore-c-1.5.0/include
example: zydis build fails with
CMake Error at /nix/store/ny0cljlv9dnbf6m123mlcr0n2v1bp08q-zycore-c-1.5.0/lib/cmake/zycore/zycore-config.cmake:13 (message):
File or directory
/nix/store/ny0cljlv9dnbf6m123mlcr0n2v1bp08q-zycore-c-1.5.0//nix/store/ny0cljlv9dnbf6m123mlcr0n2v1bp08q-zycore-c-1.5.0/include
referenced by variable zycore_INCLUDE_DIR does not exist !
Call Stack (most recent call first):
/nix/store/ny0cljlv9dnbf6m123mlcr0n2v1bp08q-zycore-c-1.5.0/lib/cmake/zycore/zycore-config.cmake:38 (set_and_check)
CMakeLists.txt:109 (find_package)
CMakeLists.txt:141 (locate_zycore)
on nixos (zycore.nix)
both
PACKAGE_PREFIX_DIR
andCMAKE_INSTALL_INCLUDEDIR
are absolute pathsso the resulting
zycore-config.cmake
looks something likezycore_INCLUDE_DIR
evals to something like/nix/store/ny0cljlv9dnbf6m123mlcr0n2v1bp08q-zycore-c-1.5.0//nix/store/ny0cljlv9dnbf6m123mlcr0n2v1bp08q-zycore-c-1.5.0/include
example:
zydis
build fails withzycore-c/cmake/zycore-config.cmake.in
Lines 14 to 15 in 419cde9
zycore-c/CMakeLists.txt
Lines 200 to 203 in 419cde9
possible solutions:
remove
${PACKAGE_PREFIX_DIR}/
use cmake_path(APPEND ...) to join paths
The text was updated successfully, but these errors were encountered: