Skip to content

Commit dd0fdf5

Browse files
committed
Fix cmake error in pedantic mode
Suppresses error: CMake Error (dev) at build/coverage/_deps/fmt-src/CMakeLists.txt:208 (set): uninitialized variable 'CMAKE_MODULE_PATH' This error is for project developers. Use -Wno-error=dev to suppress it.
1 parent c81cbed commit dd0fdf5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ if (NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
205205
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
206206
endif ()
207207

208-
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
209-
"${CMAKE_CURRENT_SOURCE_DIR}/support/cmake")
208+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/support/cmake")
210209

211210
include(CheckCXXCompilerFlag)
212211
include(JoinPaths)

0 commit comments

Comments
 (0)