fix(cmake): ensure find package with local module firstly

This commit is contained in:
John Zhao 2019-06-24 19:19:57 +08:00
parent f4195c3d54
commit ab6a9b03a3

View File

@ -22,6 +22,8 @@ if(NOT CMAKE_DEBUG_POSTFIX)
set(CMAKE_DEBUG_POSTFIX d) set(CMAKE_DEBUG_POSTFIX d)
endif() endif()
LIST(APPEND CMAKE_MODULE_PATH cmake)
# options # options
include(cmake/Option.cmake) include(cmake/Option.cmake)
@ -59,8 +61,6 @@ macro(target_link_threads NAME)
endif() endif()
endmacro() endmacro()
LIST(APPEND CMAKE_MODULE_PATH cmake)
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
# config # config