Skip to content

Commit

Permalink
Set cache variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Aug 8, 2024
1 parent 8c3534f commit a4ef400
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/AwsPrebuildDependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# DEPENDENCY_NAME Project name that should be built and installed.
# SOURCE_DIR Path to the project.
# CMAKE_ARGUMENTS Additional arguments that will be passed to cmake command.
#
# Set ${DEPENDENCY_NAME}-PREBUILT variable on success.
function(prebuild_dependency)
set(oneValueArgs DEPENDENCY_NAME SOURCE_DIR)
set(multiValueArgs CMAKE_ARGUMENTS)
Expand Down Expand Up @@ -60,6 +62,8 @@ function(prebuild_dependency)
list(PREPEND CMAKE_PREFIX_PATH ${depInstallDir}/)
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} PARENT_SCOPE)

set(${AWS_PREBUILD_DEPENDENCY_NAME}-PREBUILT TRUE CACHE INTERNAL "Indicate that dependency is built and can be used")

# Generates installation rules for the dependency project.
# On installing targets, CMake will just copy this prebuilt version to a designated installation directory.
install(
Expand Down

0 comments on commit a4ef400

Please sign in to comment.