Skip to content

Commit

Permalink
Add aws-c-common cmake path to CMAKE_MODULE_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Apr 16, 2024
1 parent bd2de7b commit 87aab6c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ list(APPEND CMAKE_MODULE_PATH ${AWS_MODULE_PATH})

if (USE_EXTERNAL_DEPS_SOURCES)
set(IN_SOURCE_BUILD ON)

if (NOT aws-c-common_SOURCE_DIR)
message(FATAL_ERROR "USE_EXTERNAL_DEPS_SOURCES option is set, but aws-c-common project is not configured."
" aws-c-common must be added using add_subdirectory command (or one of the higher-level commands that"
" uses add_subdirectory, like FetchContent)")
endif()

list(APPEND CMAKE_MODULE_PATH "${aws-c-common_SOURCE_DIR}/cmake")
endif()

include(AwsCFlags)
Expand Down

0 comments on commit 87aab6c

Please sign in to comment.