Skip to content

Commit

Permalink
Fix adding CMaize to CMAKE_MODULE_PATH (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachcran authored Aug 18, 2024
1 parent 8becf0c commit 44dc638
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 44dc638

Please sign in to comment.