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")