Skip to content

Commit

Permalink
Fix CMAKE_MODULE_PATH for real
Browse files Browse the repository at this point in the history
  • Loading branch information
babelouest committed May 29, 2022
1 parent aa5419e commit 694f63a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ set(LIBRARY_SOVERSION "${LIBRARY_VERSION_MAJOR}.${LIBRARY_VERSION_MINOR}")

# cmake modules

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules)
set(H_CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules)
list(APPEND CMAKE_MODULE_PATH "${H_CMAKE_MODULE_PATH}")

include(GNUInstallDirs)
include(CheckSymbolExists)
Expand Down Expand Up @@ -313,7 +314,7 @@ if (BUILD_HOEL_TESTING)
set(TESTS core multi)

configure_file(
"${CMAKE_MODULE_PATH}/CTestCustom.cmake.in"
"${H_CMAKE_MODULE_PATH}/CTestCustom.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/CTestCustom.cmake"
@ONLY)

Expand Down Expand Up @@ -375,7 +376,7 @@ endif ()

if (NOT TARGET uninstall)
configure_file(
"${CMAKE_MODULE_PATH}/CMakeUninstall.cmake.in"
"${H_CMAKE_MODULE_PATH}/CMakeUninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
add_custom_target(uninstall
Expand Down

0 comments on commit 694f63a

Please sign in to comment.