[Cmake-commits] CMake branch, next, updated. v2.8.12.1-6412-g47f4610

Stephen Kelly steveire at gmail.com
Thu Dec 26 02:43:03 EST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  47f46109750561e58283b5b2d647352a8755a1be (commit)
       via  942a5216426ef69b080b80a83b542fb783f2b54d (commit)
       via  369320c248a3fd829229d6316e5662c7ae04e985 (commit)
       via  d5bda1ba1504bf447e97d9db13aec3452c087004 (commit)
       via  7b0c8ecdcabeb4a343c130f5e9703112108d9355 (commit)
       via  58b58a923b3cba289130abecf576e25f47a07b8b (commit)
       via  82c445576d7e9cb2e0f65ff10faa36ef3c50a630 (commit)
       via  5206774230bd76263d89741157e103adebdaf7e8 (commit)
       via  590aa9dabb1507a19d0313a99fc5a813952e7d90 (commit)
       via  13ab7150376fdc7c353032d779a2808547297363 (commit)
      from  5c4133a6f3a2250ca4b1da95239ee1cbc676af9b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=47f46109750561e58283b5b2d647352a8755a1be
commit 47f46109750561e58283b5b2d647352a8755a1be
Merge: 5c4133a 942a521
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Thu Dec 26 02:42:59 2013 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu Dec 26 02:42:59 2013 -0500

    Merge topic 'minor-cleanups' into next
    
    942a521 install: Ensure that install(TARGETS) works with no DESTINATION
    369320c export: Only generate and install configuration files if needed.
    d5bda1b Help: Workaround pygments reporting an error for genexes.
    7b0c8ec Help: Remove workaround for pre-CMake 2.8.4 code.
    58b58a9 cmTarget: Rename container holding link implementation objects.
    82c4455 install: Rename variable referencing cmake version.
    5206774 Style: Use this-> when invoking member function.
    590aa9d add_library: Error on source listing for INTERFACE_LIBRARY.
    13ab715 add_dependencies: Disallow use with INTERFACE_LIBRARY.


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=942a5216426ef69b080b80a83b542fb783f2b54d
commit 942a5216426ef69b080b80a83b542fb783f2b54d
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Thu Dec 26 08:30:30 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Thu Dec 26 08:42:01 2013 +0100

    install: Ensure that install(TARGETS) works with no DESTINATION
    
    INTERFACE_LIBRARY targets have no corresponding files, and so
    require no DESTINATION to install anything to.

diff --git a/Tests/ExportImport/Export/Interface/CMakeLists.txt b/Tests/ExportImport/Export/Interface/CMakeLists.txt
index f400f13..9d4793d 100644
--- a/Tests/ExportImport/Export/Interface/CMakeLists.txt
+++ b/Tests/ExportImport/Export/Interface/CMakeLists.txt
@@ -23,7 +23,10 @@ set_property(TARGET sharedlib PROPERTY INTERFACE_COMPILE_DEFINITIONS "SHAREDLIB_
 add_library(sharediface INTERFACE)
 target_link_libraries(sharediface INTERFACE sharedlib)
 
-install(TARGETS headeronly sharediface sharedlib
+install(TARGETS headeronly sharediface
+  EXPORT expInterface
+)
+install(TARGETS sharedlib
   EXPORT expInterface
   RUNTIME DESTINATION bin
   LIBRARY DESTINATION lib NAMELINK_SKIP

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=369320c248a3fd829229d6316e5662c7ae04e985
commit 369320c248a3fd829229d6316e5662c7ae04e985
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Thu Dec 26 08:19:33 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Thu Dec 26 08:41:50 2013 +0100

    export: Only generate and install configuration files if needed.
    
    The modern way to create configuration dependent content is using
    generator expressions in the main export file.  The only non-deprecated
    property still generated in the configuration-specific files are
    IMPORTED_LOCATION_<CONFIG>
    
    INTERFACE_LIBRARY targets have no location, and no need for those
    files.

diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx
index 5988567..73e9b31 100644
--- a/Source/cmExportInstallFileGenerator.cxx
+++ b/Source/cmExportInstallFileGenerator.cxx
@@ -115,12 +115,17 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os)
 
   bool require2_8_12 = false;
   bool require3_0_0 = false;
+  bool requiresConfigFiles = false;
   // Create all the imported targets.
   for(std::vector<cmTargetExport*>::const_iterator
         tei = allTargets.begin();
       tei != allTargets.end(); ++tei)
     {
     cmTarget* te = (*tei)->Target;
+
+    requiresConfigFiles = requiresConfigFiles
+                              || te->GetType() != cmTarget::INTERFACE_LIBRARY;
+
     this->GenerateImportTargetCode(os, te);
 
     ImportPropertyMap properties;
@@ -197,15 +202,19 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os)
     }
   this->GenerateImportedFileCheckLoop(os);
 
-  // Generate an import file for each configuration.
   bool result = true;
-  for(std::vector<std::string>::const_iterator
-        ci = this->Configurations.begin();
-      ci != this->Configurations.end(); ++ci)
+  // Generate an import file for each configuration.
+  // Don't do this if we only export INTERFACE_LIBRARY targets.
+  if (requiresConfigFiles)
     {
-    if(!this->GenerateImportFileConfig(ci->c_str(), missingTargets))
+    for(std::vector<std::string>::const_iterator
+          ci = this->Configurations.begin();
+        ci != this->Configurations.end(); ++ci)
       {
-      result = false;
+      if(!this->GenerateImportFileConfig(ci->c_str(), missingTargets))
+        {
+        result = false;
+        }
       }
     }
 

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d5bda1ba1504bf447e97d9db13aec3452c087004
commit d5bda1ba1504bf447e97d9db13aec3452c087004
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Thu Dec 26 07:49:20 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Thu Dec 26 08:41:50 2013 +0100

    Help: Workaround pygments reporting an error for genexes.
    
    Without the workaround, CMake code snippets are not highlighted
    at all because pygments can not lex the generator expressions.

diff --git a/Utilities/Sphinx/cmake.py b/Utilities/Sphinx/cmake.py
index 1955e42..336c74a 100644
--- a/Utilities/Sphinx/cmake.py
+++ b/Utilities/Sphinx/cmake.py
@@ -12,6 +12,16 @@
 import os
 import re
 
+# Monkey patch for pygments reporting an error when generator expressions are
+# used.
+# https://bitbucket.org/birkenfeld/pygments-main/issue/942/cmake-generator-expressions-not-handled
+from pygments.lexers import CMakeLexer
+from pygments.token import Name, Operator
+from pygments.lexer import bygroups
+CMakeLexer.tokens["args"].append(('(\\$<)(.+?)(>)',
+                                  bygroups(Operator, Name.Variable, Operator)))
+
+
 from docutils.parsers.rst import Directive, directives
 from docutils.transforms import Transform
 try:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7b0c8ecdcabeb4a343c130f5e9703112108d9355
commit 7b0c8ecdcabeb4a343c130f5e9703112108d9355
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Thu Dec 26 07:52:23 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Thu Dec 26 08:41:50 2013 +0100

    Help: Remove workaround for pre-CMake 2.8.4 code.
    
    The requirement was updated in commit 920ffbf5 (Require CMake 2.8.4
    or greater to build CMake, 2013-10-11) and similar snippets were
    removed.

diff --git a/Utilities/Sphinx/CMakeLists.txt b/Utilities/Sphinx/CMakeLists.txt
index 5e0ef87..aa9735e 100644
--- a/Utilities/Sphinx/CMakeLists.txt
+++ b/Utilities/Sphinx/CMakeLists.txt
@@ -11,8 +11,7 @@
 #=============================================================================
 if(NOT CMake_SOURCE_DIR)
   set(CMakeHelp_STANDALONE 1)
-  cmake_minimum_required(VERSION 2.8.2 FATAL_ERROR)
-  set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
+  cmake_minimum_required(VERSION 2.8.4 FATAL_ERROR)
   get_filename_component(tmp "${CMAKE_CURRENT_SOURCE_DIR}" PATH)
   get_filename_component(CMake_SOURCE_DIR "${tmp}" PATH)
   include(${CMake_SOURCE_DIR}/Modules/CTestUseLaunchers.cmake)

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=58b58a923b3cba289130abecf576e25f47a07b8b
commit 58b58a923b3cba289130abecf576e25f47a07b8b
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Thu Dec 26 08:09:39 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Thu Dec 26 08:41:50 2013 +0100

    cmTarget: Rename container holding link implementation objects.
    
    Don't erroneously name it for the link implementation. That's
    something different.

diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index a0177fb..39d9819 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -136,7 +136,7 @@ public:
   std::vector<TargetPropertyEntry*> IncludeDirectoriesEntries;
   std::vector<TargetPropertyEntry*> CompileOptionsEntries;
   std::vector<TargetPropertyEntry*> CompileDefinitionsEntries;
-  std::vector<cmValueWithOrigin> LinkInterfacePropertyEntries;
+  std::vector<cmValueWithOrigin> LinkImplementationPropertyEntries;
 
   mutable std::map<std::string, std::vector<TargetPropertyEntry*> >
                                 CachedLinkInterfaceIncludeDirectoriesEntries;
@@ -1042,8 +1042,8 @@ cmTarget::AddSystemIncludeDirectories(const std::vector<std::string> &incs)
 void cmTarget::FinalizeSystemIncludeDirectories()
 {
   for (std::vector<cmValueWithOrigin>::const_iterator
-      it = this->Internal->LinkInterfacePropertyEntries.begin(),
-      end = this->Internal->LinkInterfacePropertyEntries.end();
+      it = this->Internal->LinkImplementationPropertyEntries.begin(),
+      end = this->Internal->LinkImplementationPropertyEntries.end();
       it != end; ++it)
     {
     if (!cmGeneratorExpression::IsValidTargetName(it->Value)
@@ -1495,11 +1495,11 @@ void cmTarget::SetProperty(const char* prop, const char* value)
     }
   if (strcmp(prop, "LINK_LIBRARIES") == 0)
     {
-    this->Internal->LinkInterfacePropertyEntries.clear();
+    this->Internal->LinkImplementationPropertyEntries.clear();
     cmListFileBacktrace lfbt;
     this->Makefile->GetBacktrace(lfbt);
     cmValueWithOrigin entry(value, lfbt);
-    this->Internal->LinkInterfacePropertyEntries.push_back(entry);
+    this->Internal->LinkImplementationPropertyEntries.push_back(entry);
     return;
     }
   this->Properties.SetProperty(prop, value, cmProperty::TARGET);
@@ -1570,7 +1570,7 @@ void cmTarget::AppendProperty(const char* prop, const char* value,
     cmListFileBacktrace lfbt;
     this->Makefile->GetBacktrace(lfbt);
     cmValueWithOrigin entry(value, lfbt);
-    this->Internal->LinkInterfacePropertyEntries.push_back(entry);
+    this->Internal->LinkImplementationPropertyEntries.push_back(entry);
     return;
     }
   this->Properties.AppendProperty(prop, value, cmProperty::TARGET, asString);
@@ -1882,8 +1882,8 @@ cmTarget::GetIncludeDirectories(const char *config) const
   if (!this->Internal->CacheLinkInterfaceIncludeDirectoriesDone[configString])
     {
     for (std::vector<cmValueWithOrigin>::const_iterator
-        it = this->Internal->LinkInterfacePropertyEntries.begin(),
-        end = this->Internal->LinkInterfacePropertyEntries.end();
+        it = this->Internal->LinkImplementationPropertyEntries.begin(),
+        end = this->Internal->LinkImplementationPropertyEntries.end();
         it != end; ++it)
       {
       if (!cmGeneratorExpression::IsValidTargetName(it->Value)
@@ -2111,8 +2111,8 @@ void cmTarget::GetCompileOptions(std::vector<std::string> &result,
   if (!this->Internal->CacheLinkInterfaceCompileOptionsDone[configString])
     {
     for (std::vector<cmValueWithOrigin>::const_iterator
-        it = this->Internal->LinkInterfacePropertyEntries.begin(),
-        end = this->Internal->LinkInterfacePropertyEntries.end();
+        it = this->Internal->LinkImplementationPropertyEntries.begin(),
+        end = this->Internal->LinkImplementationPropertyEntries.end();
         it != end; ++it)
       {
       if (!cmGeneratorExpression::IsValidTargetName(it->Value)
@@ -2224,8 +2224,8 @@ void cmTarget::GetCompileDefinitions(std::vector<std::string> &list,
   if (!this->Internal->CacheLinkInterfaceCompileDefinitionsDone[configString])
     {
     for (std::vector<cmValueWithOrigin>::const_iterator
-        it = this->Internal->LinkInterfacePropertyEntries.begin(),
-        end = this->Internal->LinkInterfacePropertyEntries.end();
+        it = this->Internal->LinkImplementationPropertyEntries.begin(),
+        end = this->Internal->LinkImplementationPropertyEntries.end();
         it != end; ++it)
       {
       if (!cmGeneratorExpression::IsValidTargetName(it->Value)
@@ -2800,8 +2800,8 @@ const char *cmTarget::GetProperty(const char* prop,
     output = "";
     std::string sep;
     for (std::vector<cmValueWithOrigin>::const_iterator
-        it = this->Internal->LinkInterfacePropertyEntries.begin(),
-        end = this->Internal->LinkInterfacePropertyEntries.end();
+        it = this->Internal->LinkImplementationPropertyEntries.begin(),
+        end = this->Internal->LinkImplementationPropertyEntries.end();
         it != end; ++it)
       {
       output += sep;

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=82c445576d7e9cb2e0f65ff10faa36ef3c50a630
commit 82c445576d7e9cb2e0f65ff10faa36ef3c50a630
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Tue Dec 10 18:59:21 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Thu Dec 26 08:41:50 2013 +0100

    install: Rename variable referencing cmake version.
    
    The next version is 3.0.0, not 2.8.13.
    
    The version generated in the export file should be updated in
    the release branch in both cmExportInstallFileGenerator and
    cmExportBuildFileGenerator.

diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx
index 1025dc0..5988567 100644
--- a/Source/cmExportInstallFileGenerator.cxx
+++ b/Source/cmExportInstallFileGenerator.cxx
@@ -114,7 +114,7 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os)
   std::vector<std::string> missingTargets;
 
   bool require2_8_12 = false;
-  bool require2_8_13 = false;
+  bool require3_0_0 = false;
   // Create all the imported targets.
   for(std::vector<cmTargetExport*>::const_iterator
         tei = allTargets.begin();
@@ -160,7 +160,7 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os)
       }
     if (te->GetType() == cmTarget::INTERFACE_LIBRARY)
       {
-      require2_8_13 = true;
+      require3_0_0 = true;
       }
     this->PopulateInterfaceProperty("INTERFACE_POSITION_INDEPENDENT_CODE",
                                   te, properties);
@@ -169,7 +169,7 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os)
     this->GenerateInterfaceProperties(te, os, properties);
     }
 
-  if (require2_8_13)
+  if (require3_0_0)
     {
     this->GenerateRequiredCMakeVersion(os, "2.8.12.20131007");
     }

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5206774230bd76263d89741157e103adebdaf7e8
commit 5206774230bd76263d89741157e103adebdaf7e8
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Thu Dec 26 08:06:36 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Thu Dec 26 08:41:50 2013 +0100

    Style: Use this-> when invoking member function.

diff --git a/Source/cmIncludeDirectoryCommand.cxx b/Source/cmIncludeDirectoryCommand.cxx
index 30c1743..e20fe02 100644
--- a/Source/cmIncludeDirectoryCommand.cxx
+++ b/Source/cmIncludeDirectoryCommand.cxx
@@ -55,7 +55,7 @@ bool cmIncludeDirectoryCommand
 
     std::vector<std::string> includes;
 
-    GetIncludes(*i, includes);
+    this->GetIncludes(*i, includes);
 
     if (before)
       {

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=590aa9dabb1507a19d0313a99fc5a813952e7d90
commit 590aa9dabb1507a19d0313a99fc5a813952e7d90
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Thu Dec 26 07:57:40 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Thu Dec 26 08:41:49 2013 +0100

    add_library: Error on source listing for INTERFACE_LIBRARY.

diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index 0f98f35..9172317 100644
--- a/Source/cmAddLibraryCommand.cxx
+++ b/Source/cmAddLibraryCommand.cxx
@@ -109,6 +109,14 @@ bool cmAddLibraryCommand
       }
     }
 
+  if (type == cmTarget::INTERFACE_LIBRARY && s != args.end())
+    {
+    cmOStringStream e;
+    e << "INTERFACE library requires no source arguments.";
+    this->SetError(e.str().c_str());
+    return false;
+    }
+
   bool nameOk = cmGeneratorExpression::IsValidTargetName(libName) &&
     !cmGlobalGenerator::IsReservedTarget(libName);
 
diff --git a/Tests/RunCMake/interface_library/RunCMakeTest.cmake b/Tests/RunCMake/interface_library/RunCMakeTest.cmake
index d76600c..f73efa3 100644
--- a/Tests/RunCMake/interface_library/RunCMakeTest.cmake
+++ b/Tests/RunCMake/interface_library/RunCMakeTest.cmake
@@ -4,5 +4,6 @@ run_cmake(invalid_name)
 run_cmake(target_commands)
 run_cmake(no_shared_libs)
 run_cmake(whitelist)
+run_cmake(no_sources)
 run_cmake(genex_link)
 run_cmake(add_dependencies)
diff --git a/Tests/RunCMake/interface_library/no_sources-result.txt b/Tests/RunCMake/interface_library/no_sources-result.txt
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/Tests/RunCMake/interface_library/no_sources-result.txt
@@ -0,0 +1 @@
+1
diff --git a/Tests/RunCMake/interface_library/no_sources-stderr.txt b/Tests/RunCMake/interface_library/no_sources-stderr.txt
new file mode 100644
index 0000000..0880731
--- /dev/null
+++ b/Tests/RunCMake/interface_library/no_sources-stderr.txt
@@ -0,0 +1,4 @@
+CMake Error at no_sources.cmake:2 \(add_library\):
+  add_library INTERFACE library requires no source arguments.
+Call Stack \(most recent call first\):
+  CMakeLists.txt:3 \(include\)
diff --git a/Tests/RunCMake/interface_library/no_sources.cmake b/Tests/RunCMake/interface_library/no_sources.cmake
new file mode 100644
index 0000000..2bfc909
--- /dev/null
+++ b/Tests/RunCMake/interface_library/no_sources.cmake
@@ -0,0 +1,2 @@
+
+add_library(iface INTERFACE empty.cpp)

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=13ab7150376fdc7c353032d779a2808547297363
commit 13ab7150376fdc7c353032d779a2808547297363
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Wed Dec 25 15:11:50 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Thu Dec 26 08:41:49 2013 +0100

    add_dependencies: Disallow use with INTERFACE_LIBRARY.

diff --git a/Source/cmAddDependenciesCommand.cxx b/Source/cmAddDependenciesCommand.cxx
index e4d7f7f..87bfb3c 100644
--- a/Source/cmAddDependenciesCommand.cxx
+++ b/Source/cmAddDependenciesCommand.cxx
@@ -33,6 +33,15 @@ bool cmAddDependenciesCommand
     }
   if(cmTarget* target = this->Makefile->FindTargetToUse(target_name.c_str()))
     {
+    if (target->GetType() == cmTarget::INTERFACE_LIBRARY)
+      {
+      cmOStringStream e;
+      e << "Cannot add target-level dependencies to INTERFACE library "
+        "target \"" << target_name << "\".\n";
+      this->SetError(e.str().c_str());
+      return false;
+      }
+
     std::vector<std::string>::const_iterator s = args.begin();
     ++s; // skip over target_name
     for (; s != args.end(); ++s)
diff --git a/Tests/RunCMake/interface_library/RunCMakeTest.cmake b/Tests/RunCMake/interface_library/RunCMakeTest.cmake
index 0d00b71..d76600c 100644
--- a/Tests/RunCMake/interface_library/RunCMakeTest.cmake
+++ b/Tests/RunCMake/interface_library/RunCMakeTest.cmake
@@ -5,3 +5,4 @@ run_cmake(target_commands)
 run_cmake(no_shared_libs)
 run_cmake(whitelist)
 run_cmake(genex_link)
+run_cmake(add_dependencies)
diff --git a/Tests/RunCMake/interface_library/add_dependencies-result.txt b/Tests/RunCMake/interface_library/add_dependencies-result.txt
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/Tests/RunCMake/interface_library/add_dependencies-result.txt
@@ -0,0 +1 @@
+1
diff --git a/Tests/RunCMake/interface_library/add_dependencies-stderr.txt b/Tests/RunCMake/interface_library/add_dependencies-stderr.txt
new file mode 100644
index 0000000..c550b68
--- /dev/null
+++ b/Tests/RunCMake/interface_library/add_dependencies-stderr.txt
@@ -0,0 +1,6 @@
+CMake Error at add_dependencies.cmake:4 \(add_dependencies\):
+  add_dependencies Cannot add target-level dependencies to INTERFACE library
+  target "iface".
+
+Call Stack \(most recent call first\):
+  CMakeLists.txt:3 \(include\)
diff --git a/Tests/RunCMake/interface_library/add_dependencies.cmake b/Tests/RunCMake/interface_library/add_dependencies.cmake
new file mode 100644
index 0000000..12cdfb4
--- /dev/null
+++ b/Tests/RunCMake/interface_library/add_dependencies.cmake
@@ -0,0 +1,4 @@
+
+add_library(foo empty.cpp)
+add_library(iface INTERFACE)
+add_dependencies(iface foo)

-----------------------------------------------------------------------

Summary of changes:
 Source/cmAddDependenciesCommand.cxx                |    9 ++++++
 Source/cmAddLibraryCommand.cxx                     |    8 +++++
 Source/cmExportInstallFileGenerator.cxx            |   27 ++++++++++++------
 Source/cmIncludeDirectoryCommand.cxx               |    2 +-
 Source/cmTarget.cxx                                |   28 ++++++++++----------
 Tests/ExportImport/Export/Interface/CMakeLists.txt |    5 +++-
 .../RunCMake/interface_library/RunCMakeTest.cmake  |    2 +
 .../add_dependencies-result.txt}                   |    0
 .../interface_library/add_dependencies-stderr.txt  |    6 ++++
 .../interface_library/add_dependencies.cmake       |    4 +++
 .../no_sources-result.txt}                         |    0
 .../interface_library/no_sources-stderr.txt        |    4 +++
 Tests/RunCMake/interface_library/no_sources.cmake  |    2 +
 Utilities/Sphinx/CMakeLists.txt                    |    3 +-
 Utilities/Sphinx/cmake.py                          |   10 +++++++
 15 files changed, 83 insertions(+), 27 deletions(-)
 copy Tests/RunCMake/{CMP0004/CMP0004-NEW-result.txt => interface_library/add_dependencies-result.txt} (100%)
 create mode 100644 Tests/RunCMake/interface_library/add_dependencies-stderr.txt
 create mode 100644 Tests/RunCMake/interface_library/add_dependencies.cmake
 copy Tests/RunCMake/{CMP0004/CMP0004-NEW-result.txt => interface_library/no_sources-result.txt} (100%)
 create mode 100644 Tests/RunCMake/interface_library/no_sources-stderr.txt
 create mode 100644 Tests/RunCMake/interface_library/no_sources.cmake


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list