From c334fa3ce9197c3e374536fe7228540eb378eb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= Date: Fri, 21 Oct 2022 14:24:42 +0200 Subject: [PATCH] Use local cmake module path the last --- cmake/findDependencies.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/findDependencies.cmake b/cmake/findDependencies.cmake index 749306f4..67b6f494 100644 --- a/cmake/findDependencies.cmake +++ b/cmake/findDependencies.cmake @@ -1,5 +1,3 @@ -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") - if (CONAN_AUTO_INSTALL) # Download automatically the cmake-conan integration file if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake") @@ -30,6 +28,8 @@ else() list(APPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR}) endif() +list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/") + find_package (Python3 COMPONENTS Interpreter) if (NOT Python3_Interpreter_FOUND) message(WARNING "Python3 was not found. Python tests under the 'tests' folder will not be executed")