From e86eeea0508038efb1ab7d7fe4a8cb79b4cd6152 Mon Sep 17 00:00:00 2001 From: Bohdan Date: Thu, 19 Sep 2019 20:54:03 +0300 Subject: [PATCH] Fix include dir (#28) Signed-off-by: Bogdan Vaneev --- rust.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rust.cmake b/rust.cmake index 4ec4250..07658f0 100644 --- a/rust.cmake +++ b/rust.cmake @@ -21,7 +21,6 @@ message(STATUS "[sr25519] library: ${lib}") set(include_path ${CMAKE_CURRENT_SOURCE_DIR}/include) set(sr25519_h_dir ${include_path}/sr25519) - ### setup install task include(GNUInstallDirs) function(ifd_install what where) @@ -40,7 +39,7 @@ function(ifd_install what where) endfunction() -ifd_install(${include_path} ${CMAKE_INSTALL_INCLUDEDIR}) +ifd_install(${sr25519_h_dir} ${CMAKE_INSTALL_INCLUDEDIR}) ifd_install(${lib} ${CMAKE_INSTALL_LIBDIR}) ifd_install(${CMAKE_SOURCE_DIR}/sr25519Config.cmake ${CMAKE_INSTALL_LIBDIR}/cmake/sr25519) ifd_install(${CMAKE_SOURCE_DIR}/sr25519Config-noconfig.cmake ${CMAKE_INSTALL_LIBDIR}/cmake/sr25519)