Skip to content

Commit c84bf55

Browse files
committed
Attempt to fix strange modules path resolving
Not sure why CPM does not want to include the modules, but this needs to be resolved asap.
1 parent 40a7d56 commit c84bf55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ option(RSP_ENABLE_ANSI "Enable ANSI output" false)
1212
# -------------------------------------------------------------------------------------------------------------- #
1313

1414
# Append this package's cmake scripts in module path
15-
list(FIND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" hasModulePath)
16-
if(${hasModulePath} STREQUAL "-1")
15+
list(FIND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" has_cmake_scripts_module_path)
16+
if(has_cmake_scripts_module_path EQUAL -1)
1717
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
1818
endif()
1919

0 commit comments

Comments
 (0)