aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-05-09 01:24:34 +0200
committerselsta <selsta@sent.at>2021-05-11 01:29:44 +0200
commit4969f39c09a5b6dc20ba669b649f5cee1673b1d4 (patch)
treef3d5f3398aeaf64c0bc8f8c983d01c6e6ec48018
parentMerge pull request #7669 (diff)
downloadmonero-4969f39c09a5b6dc20ba669b649f5cee1673b1d4.tar.xz
cmake: use CMAKE_CURRENT_LIST_DIR in FindLibUSB
-rw-r--r--cmake/FindLibUSB.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindLibUSB.cmake b/cmake/FindLibUSB.cmake
index 79d8fba75..6944c6c45 100644
--- a/cmake/FindLibUSB.cmake
+++ b/cmake/FindLibUSB.cmake
@@ -134,7 +134,7 @@ if ( LibUSB_FOUND )
try_compile(LibUSB_COMPILE_TEST_PASSED
${CMAKE_BINARY_DIR}
- "${CMAKE_SOURCE_DIR}/cmake/test-libusb-version.c"
+ "${CMAKE_CURRENT_LIST_DIR}/test-libusb-version.c"
CMAKE_FLAGS
"-DINCLUDE_DIRECTORIES=${LibUSB_INCLUDE_DIRS}"
"-DLINK_DIRECTORIES=${LibUSB_LIBRARIES}"