Skip to content

Commit e94270b

Browse files
committed
Fix building UMF via FetchContent
Fix "cmake_uninstall.cmake.in does not exist"
1 parent 55b9e0f commit e94270b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ install(
173173
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
174174

175175
configure_file(
176-
"${CMAKE_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
177-
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
176+
"${PROJECT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
177+
"${PROJECT_BINARY_DIR}/cmake_uninstall.cmake"
178178
IMMEDIATE @ONLY)
179179

180180
add_custom_target(uninstall
181-
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
181+
COMMAND ${CMAKE_COMMAND} -P ${PROJECT_BINARY_DIR}/cmake_uninstall.cmake)

0 commit comments

Comments
 (0)