From ab6a9b03a3cde8edfeeb6f02982a691746c186c2 Mon Sep 17 00:00:00 2001 From: John Zhao Date: Mon, 24 Jun 2019 19:19:57 +0800 Subject: [PATCH] fix(cmake): ensure find package with local module firstly --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 121508b..cce8496 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,8 @@ if(NOT CMAKE_DEBUG_POSTFIX) set(CMAKE_DEBUG_POSTFIX d) endif() +LIST(APPEND CMAKE_MODULE_PATH cmake) + # options include(cmake/Option.cmake) @@ -59,8 +61,6 @@ macro(target_link_threads NAME) endif() endmacro() -LIST(APPEND CMAKE_MODULE_PATH cmake) - include(CMakePackageConfigHelpers) # config