From 8832254c6d93b8aebf0e34291c294a40d117d7e1 Mon Sep 17 00:00:00 2001 From: click Date: Thu, 7 Oct 2010 21:34:13 +0200 Subject: [PATCH] Buildsystem: Clean up uninstall-target files a bit --HG-- branch : trunk --- cmake/platform/osx/settings.cmake | 4 ++-- cmake/platform/unix/settings.cmake | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/platform/osx/settings.cmake b/cmake/platform/osx/settings.cmake index 12a7eb193eb..734a9e5aa84 100644 --- a/cmake/platform/osx/settings.cmake +++ b/cmake/platform/osx/settings.cmake @@ -17,13 +17,13 @@ endif() # configure uninstaller configure_file( "${CMAKE_SOURCE_DIR}/cmake/platform/cmake_uninstall.cmake.in" - "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" + "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake" IMMEDIATE @ONLY ) message(STATUS "OSX: Configuring uninstall target") # create uninstaller target (allows for using "make uninstall") add_custom_target(uninstall - "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" + "${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake" ) message(STATUS "OSX: Created uninstall target") diff --git a/cmake/platform/unix/settings.cmake b/cmake/platform/unix/settings.cmake index 5d30c280da3..e53e680a566 100644 --- a/cmake/platform/unix/settings.cmake +++ b/cmake/platform/unix/settings.cmake @@ -20,7 +20,7 @@ message(STATUS "UNIX: Configuring uninstall target") # create uninstaller target (allows for using "make uninstall") add_custom_target(uninstall - "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" + "${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake" ) message(STATUS "UNIX: Created uninstall target")