aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-06-01 22:07:47 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-06-01 22:07:47 -0500
commit126ff6b0ee3f52529e5c205f46ab6740d35558ab (patch)
treec38fa5e2ab40973996f2b558dd36adc18cc281ee /cmake
parentMerge pull request #7710 (diff)
parentcmake: use CMAKE_CURRENT_LIST_DIR in FindLibUSB (diff)
downloadmonero-126ff6b0ee3f52529e5c205f46ab6740d35558ab.tar.xz
Merge pull request #7711
4969f39 cmake: use CMAKE_CURRENT_LIST_DIR in FindLibUSB (selsta)
Diffstat (limited to 'cmake')
-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}"