diff --git a/cmake/FetchGBench.cmake b/cmake/FetchGBench.cmake index d317d497d5438bb9043eb2c4bf819a8f3c84a94e..2de00d46ebaaa6d227b6c04e4b324a8a1fb75fb4 100644 --- a/cmake/FetchGBench.cmake +++ b/cmake/FetchGBench.cmake @@ -11,7 +11,7 @@ if(POLICY CMP0135) endif() fetchcontent_declare(googlebench - URL ${CMAKE_SOURCE_DIR}/third_party/benchmark-v1.8.4.zip + URL ${CMAKE_CURRENT_SOURCE_DIR}/third_party/benchmark-v1.8.4.zip URL_HASH SHA256=84c49c4c07074f36fbf8b4f182ed7d75191a6fa72756ab4a17848455499f4286 ) diff --git a/cmake/FetchGTest.cmake b/cmake/FetchGTest.cmake index 88eb639d32fd17b25c0240fc0567bc5a39cfafe5..6089594b905f54ca26954912785651de79b62f5f 100644 --- a/cmake/FetchGTest.cmake +++ b/cmake/FetchGTest.cmake @@ -11,7 +11,7 @@ if(POLICY CMP0135) endif() fetchcontent_declare(googletest - URL ${CMAKE_SOURCE_DIR}/third_party/googletest-v1.14.0.zip + URL ${CMAKE_CURRENT_SOURCE_DIR}/third_party/googletest-v1.14.0.zip URL_HASH SHA256=1f357c27ca988c3f7c6b4bf68a9395005ac6761f034046e9dde0896e3aba00e4 )