From 5b36f06f49c88fb1921da18f54524081729cb4d5 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 11 Apr 2018 17:51:19 +0200 Subject: Install: use correct source dir for Udev rules installation when included from another CMake project Signed-off-by: Szczepan Zalega --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6487e5d..073e7fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,7 +135,7 @@ IF(NOT WIN32) ENDIF() install(FILES - ${CMAKE_SOURCE_DIR}/data/41-nitrokey.rules + ${CMAKE_CURRENT_SOURCE_DIR}/data/41-nitrokey.rules DESTINATION ${CMAKE_INSTALL_UDEVRULESDIR} ) ENDIF() -- cgit v1.2.3