Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix adding CMaize to CMAKE_MODULE_PATH #103

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmake/get_cmaize.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ include_guard()
include(versions)

#[[
# This function encapsulates the process of getting CMakePP using CMake's
# This function encapsulates the process of getting CMaize using CMake's
# FetchContent module. We have encapsulated it in a function so we can set
# the options for its configure step without affecting the options for the
# parent project's configure step (namely we do not want to build CMakePP's
# parent project's configure step (namely we do not want to build CMaize's
# unit tests).
#]]
function(get_cmaize)
Expand All @@ -35,7 +35,7 @@ function(get_cmaize)
# Store whether we are building tests or not, then turn off the tests
set(build_testing_old "${BUILD_TESTING}")
set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
# Download CMakePP and bring it into scope
# Download CMaize and bring it into scope
include(FetchContent)
FetchContent_Declare(
cmaize
Expand All @@ -45,7 +45,7 @@ function(get_cmaize)
FetchContent_MakeAvailable(cmaize)

set(
CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${cmake_test_SOURCE_DIR}/cmake"
CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${cmaize_SOURCE_DIR}/cmake"
PARENT_SCOPE
)

Expand Down
Loading