From 692ea7d64b294fa3e5fb811884aa08603b850d9b Mon Sep 17 00:00:00 2001 From: Zachery Crandall Date: Sat, 17 Aug 2024 17:18:33 -0600 Subject: [PATCH] Fix adding CMaize to CMAKE_MODULE_PATH --- cmake/get_cmaize.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/get_cmaize.cmake b/cmake/get_cmaize.cmake index c68c6f2..2fc4e3c 100644 --- a/cmake/get_cmaize.cmake +++ b/cmake/get_cmaize.cmake @@ -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) @@ -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 @@ -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 )