Skip to content

Commit 9278290

Browse files
committed
Core (Build): Use PROJECT_(SOURCE/BINARY)_DIR instead of CMAKE_CURRENT_(SOURCE/BINARY)_DIR
1 parent 56721a8 commit 9278290

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libvisual/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,13 @@ ADD_SUBDIRECTORY(libvisual)
292292
# Uninstallation (script copied from CMake FAQ)
293293

294294
CONFIGURE_FILE(
295-
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
296-
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
295+
"${PROJECT_SOURCE_DIR}/cmake_uninstall.cmake.in"
296+
"${PROJECT_BINARY_DIR}/cmake_uninstall.cmake"
297297
IMMEDIATE @ONLY
298298
)
299299

300300
ADD_CUSTOM_TARGET(uninstall
301-
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
301+
"${CMAKE_COMMAND}" -P "${PROJECT_BINARY_DIR}/cmake_uninstall.cmake"
302302
)
303303

304304
# Packaging

0 commit comments

Comments
 (0)