aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-04-11 17:51:19 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-04-11 17:51:19 +0200
commit5b36f06f49c88fb1921da18f54524081729cb4d5 (patch)
treee32bfbbd62e9a31d09550f66c39cb65ab8425db0
parent9d4911d02e9e87ebd3b2a36acce4a347a58e9fff (diff)
downloadlibnitrokey-5b36f06f49c88fb1921da18f54524081729cb4d5.tar.gz
libnitrokey-5b36f06f49c88fb1921da18f54524081729cb4d5.tar.bz2
Install: use correct source dir for Udev rules installation when included from another CMake project
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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()