summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Source/cmInstallCommand.cxx7
-rw-r--r--Tests/RunCMake/include_directories/RunCMakeTest.cmake1
-rw-r--r--Tests/RunCMake/include_directories/TargetInterfaceIncludes-result.txt1
-rw-r--r--Tests/RunCMake/include_directories/TargetInterfaceIncludes-stderr.txt4
-rw-r--r--Tests/RunCMake/include_directories/TargetInterfaceIncludes.cmake4
5 files changed, 0 insertions, 17 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx
index 4649eda149..0faf1d4de8 100644
--- a/Source/cmInstallCommand.cxx
+++ b/Source/cmInstallCommand.cxx
@@ -295,13 +295,6 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
return false;
}
- if(!includesArgs.GetIncludeDirs().empty() && exports.GetString().empty())
- {
- this->SetError("TARGETS given INCLUDES DESTINATION, but EXPORT set "
- "not specified.");
- return false;
- }
-
// Enforce argument rules too complex to specify for the
// general-purpose parser.
if(archiveArgs.GetNamelinkOnly() ||
diff --git a/Tests/RunCMake/include_directories/RunCMakeTest.cmake b/Tests/RunCMake/include_directories/RunCMakeTest.cmake
index e582960fb9..520dd448d0 100644
--- a/Tests/RunCMake/include_directories/RunCMakeTest.cmake
+++ b/Tests/RunCMake/include_directories/RunCMakeTest.cmake
@@ -9,4 +9,3 @@ run_cmake(RelativePathInInterface)
run_cmake(ImportedTarget)
run_cmake(RelativePathInGenex)
run_cmake(CMP0021)
-run_cmake(TargetInterfaceIncludes)
diff --git a/Tests/RunCMake/include_directories/TargetInterfaceIncludes-result.txt b/Tests/RunCMake/include_directories/TargetInterfaceIncludes-result.txt
deleted file mode 100644
index d00491fd7e..0000000000
--- a/Tests/RunCMake/include_directories/TargetInterfaceIncludes-result.txt
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/Tests/RunCMake/include_directories/TargetInterfaceIncludes-stderr.txt b/Tests/RunCMake/include_directories/TargetInterfaceIncludes-stderr.txt
deleted file mode 100644
index d1539275d6..0000000000
--- a/Tests/RunCMake/include_directories/TargetInterfaceIncludes-stderr.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-CMake Error at TargetInterfaceIncludes.cmake:3 \(install\):
- install TARGETS given INCLUDES DESTINATION, but EXPORT set not specified.
-Call Stack \(most recent call first\):
- CMakeLists.txt:3 \(include\)
diff --git a/Tests/RunCMake/include_directories/TargetInterfaceIncludes.cmake b/Tests/RunCMake/include_directories/TargetInterfaceIncludes.cmake
deleted file mode 100644
index 92f31fc642..0000000000
--- a/Tests/RunCMake/include_directories/TargetInterfaceIncludes.cmake
+++ /dev/null
@@ -1,4 +0,0 @@
-
-add_library(empty empty.cpp)
-install(TARGETS empty DESTINATION lib INCLUDES DESTINATION include)
-# install(EXPORT )