mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-13 17:07:57 +00:00
install: Normalize DESTINATION .
Such that during installation, instead of printing -- Installing: /cmake/install/prefix/./file now prints -- Installing: /cmake/install/prefix/file
This commit is contained in:
@@ -219,6 +219,10 @@ bool cmInstallGenerator::InstallsForConfig(std::string const& config)
|
||||
std::string cmInstallGenerator::ConvertToAbsoluteDestination(
|
||||
std::string const& dest)
|
||||
{
|
||||
if (dest == ".") {
|
||||
return "${CMAKE_INSTALL_PREFIX}";
|
||||
}
|
||||
|
||||
std::string result;
|
||||
if (!dest.empty() && !cmSystemTools::FileIsFullPath(dest)) {
|
||||
result = "${CMAKE_INSTALL_PREFIX}/";
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
-- Installing: [^
|
||||
]+/Tests/RunCMake/install/FILES-DESTINATION-dot-build/root-all/empty\.c
|
||||
1
Tests/RunCMake/install/FILES-DESTINATION-dot.cmake
Normal file
1
Tests/RunCMake/install/FILES-DESTINATION-dot.cmake
Normal file
@@ -0,0 +1 @@
|
||||
install(FILES empty.c DESTINATION ".")
|
||||
@@ -127,6 +127,7 @@ if(CMake_TEST_ISPC)
|
||||
run_install_test(FILES-EXTRA_ISPC_TARGET_OBJECTS)
|
||||
endif()
|
||||
|
||||
run_install_test(FILES-DESTINATION-dot)
|
||||
|
||||
run_install_test(TARGETS-InstallFromSubDir)
|
||||
run_install_test(TARGETS-OPTIONAL)
|
||||
|
||||
Reference in New Issue
Block a user