Skip to content

Commit

Permalink
Fix the cmake can't find nebula-common-config.cmake (vesoft-inc#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangleptr authored Apr 27, 2020
1 parent d0a8c72 commit 64cc72a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ if (GIT_INFO_SHA)
endif()

# To include customized FindXXX.cmake modules
set(CMAKE_MODULE_PATH "${NEBULA_HOME}/cmake" ${CMAKE_MODULE_PATH})

list(APPEND CMAKE_MODULE_PATH "${NEBULA_HOME}/cmake")
#list(APPEND CMAKE_MODULE_PATH "${NEBULA_HOME}/modules/common")
message(STATUS "CMAKE_MODULE_PATH: " ${CMAKE_MODULE_PATH})
# When NEBULA_THIRDPARTY_ROOT is null, set default value as /opt/nebula/third-party
if("${NEBULA_THIRDPARTY_ROOT}" STREQUAL "")
SET(NEBULA_THIRDPARTY_ROOT "/opt/nebula/third-party")
Expand Down Expand Up @@ -154,7 +155,7 @@ add_dependent_project(
${NEBULA_COMMON_REPO_URL}
${NEBULA_COMMON_REPO_TAG}
)
find_package(${NEBULA_COMMON_PACKAGE} REQUIRED)
find_package(${NEBULA_COMMON_PACKAGE} REQUIRED PATHS "${NEBULA_HOME}/modules/common")
message(STATUS ">>>>> The nebula-common repo has been configured successfully <<<<<")
message(STATUS "")
include_directories(AFTER modules/common/src)
Expand Down

0 comments on commit 64cc72a

Please sign in to comment.