[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2323-g20e424b

Stephen Kelly steveire at gmail.com
Mon Feb 25 10:00:44 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  20e424b3acdb0fea04e54720da33e3e5f6031816 (commit)
       via  cbf07569ed0a1e64b7131ba989c2cc16f1e3c16f (commit)
       via  21a342c8b16df2cc9ea34ef494ba8ffd7f3a450a (commit)
       via  47b8d322a4d9598706948553dfbf9daebe80dcef (commit)
       via  2e39d21c87786d7b714dd0f88ec4386fce8ac0b1 (commit)
       via  2de047669fd35cc293a29745990f26084a9b608a (commit)
       via  976cdf5488ad53ca5500f83f39e8594e0e440fdd (commit)
      from  5cbeeef9ccb4d6bc9a46b8a559c4f4eaa9c64958 (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=20e424b3acdb0fea04e54720da33e3e5f6031816
commit 20e424b3acdb0fea04e54720da33e3e5f6031816
Merge: 5cbeeef cbf0756
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Mon Feb 25 10:00:33 2013 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Mon Feb 25 10:00:33 2013 -0500

    Merge topic 'remove-TARGET_DEFINED-genex' into next
    
    cbf0756 Revert "Add the TARGET_DEFINED generator expression"
    21a342c Remove use of TARGET_DEFINED from the target_link_libraries test.
    47b8d32 Remove use of TARGET_DEFINED from the ExportImport test.
    2e39d21 Remove use of TARGET_DEFINED from target_include_directories test.
    2de0476 CMake Nightly Date Stamp
    976cdf5 CMake Nightly Date Stamp


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cbf07569ed0a1e64b7131ba989c2cc16f1e3c16f
commit cbf07569ed0a1e64b7131ba989c2cc16f1e3c16f
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Sat Feb 23 13:30:38 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Mon Feb 25 15:35:11 2013 +0100

    Revert "Add the TARGET_DEFINED generator expression"
    
    This reverts commit 2bee6f5ba5b3f33817cc00e056a7df60d05c9399.
    
    This expression is not used, and has a semantic which is not completely
    optimal (namely considering utility targets to be targets, though
    usually we are interested in linkable targets).
    
    Remove it so that we have more freedom to define better expressions in
    the future.
    
    Conflicts:
            Source/cmGeneratorExpressionEvaluator.cxx
            Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt
            Tests/CMakeCommands/target_compile_definitions/consumer.cpp

diff --git a/Source/cmDocumentGeneratorExpressions.h b/Source/cmDocumentGeneratorExpressions.h
index 8b80a8a..76a60c3 100644
--- a/Source/cmDocumentGeneratorExpressions.h
+++ b/Source/cmDocumentGeneratorExpressions.h
@@ -37,7 +37,6 @@
   "target in the same buildsystem. Expands to the empty string "        \
   "otherwise.\n"                                                        \
   "  $<TARGET_FILE:tgt>        = main file (.exe, .so.1.2, .a)\n"       \
-  "  $<TARGET_DEFINED:tgt>     = '1' if tgt is a target, else '0'\n"    \
   "  $<TARGET_LINKER_FILE:tgt> = file used to link (.a, .lib, .so)\n"   \
   "  $<TARGET_SONAME_FILE:tgt> = file with soname (.so.3)\n"            \
   "where \"tgt\" is the name of a target.  "                            \
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx
index cd6a40b..b5fe8ba 100644
--- a/Source/cmGeneratorExpressionEvaluator.cxx
+++ b/Source/cmGeneratorExpressionEvaluator.cxx
@@ -291,22 +291,6 @@ static const struct ConfigurationTestNode : public cmGeneratorExpressionNode
 } configurationTestNode;
 
 
-static const struct TargetDefinedNode : public cmGeneratorExpressionNode
-{
-  TargetDefinedNode() {}
-
-  virtual int NumExpectedParameters() const { return 1; }
-
-  std::string Evaluate(const std::vector<std::string> &parameters,
-                       cmGeneratorExpressionContext *context,
-                       const GeneratorExpressionContent *,
-                       cmGeneratorExpressionDAGChecker *) const
-  {
-    return context->Makefile->FindTargetToUse(parameters.front().c_str())
-      ? "1" : "0";
-  }
-} targetDefinedNode;
-
 //----------------------------------------------------------------------------
 static const char* targetPropertyTransitiveWhitelist[] = {
     "INTERFACE_INCLUDE_DIRECTORIES"
@@ -942,8 +926,6 @@ cmGeneratorExpressionNode* GetNode(const std::string &identifier)
     return &buildInterfaceNode;
   else if (identifier == "INSTALL_INTERFACE")
     return &installInterfaceNode;
-  else if (identifier == "TARGET_DEFINED")
-    return &targetDefinedNode;
   else if (identifier == "INSTALL_PREFIX")
     return &installPrefixNode;
   return 0;
diff --git a/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt b/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt
index 8a4437b..6d0e646 100644
--- a/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt
+++ b/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt
@@ -18,7 +18,5 @@ add_executable(consumer
 
 target_compile_definitions(consumer
   PRIVATE $<TARGET_PROPERTY:target_compile_definitions,INTERFACE_COMPILE_DEFINITIONS>
-  $<$<TARGET_DEFINED:notdefined>:SHOULD_NOT_BE_DEFINED>
-  $<$<TARGET_DEFINED:target_compile_definitions>:SHOULD_BE_DEFINED>
   -DDASH_D_DEFINE
 )
diff --git a/Tests/CMakeCommands/target_compile_definitions/consumer.cpp b/Tests/CMakeCommands/target_compile_definitions/consumer.cpp
index 1a46aa5..a391114 100644
--- a/Tests/CMakeCommands/target_compile_definitions/consumer.cpp
+++ b/Tests/CMakeCommands/target_compile_definitions/consumer.cpp
@@ -11,14 +11,6 @@
 #error Expected MY_INTERFACE_DEFINE
 #endif
 
-#ifdef SHOULD_NOT_BE_DEFINED
-#error Unexpected SHOULD_NOT_BE_DEFINED
-#endif
-
-#ifndef SHOULD_BE_DEFINED
-#error Expected SHOULD_BE_DEFINED
-#endif
-
 #ifndef DASH_D_DEFINE
 #error Expected DASH_D_DEFINE
 #endif

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=21a342c8b16df2cc9ea34ef494ba8ffd7f3a450a
commit 21a342c8b16df2cc9ea34ef494ba8ffd7f3a450a
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Mon Feb 25 15:31:40 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Mon Feb 25 15:33:07 2013 +0100

    Remove use of TARGET_DEFINED from the target_link_libraries test.
    
    Update the unit test introduced in commit 57175d55 (Only use early
    evaluation termination for transitive properties., 2013-02-07) to
    not use the expression, but still test the appropriate code.

diff --git a/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt b/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
index 19ee59f..b13c13d 100644
--- a/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
+++ b/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
@@ -103,7 +103,7 @@ target_compile_definitions(depG INTERFACE
 )
 
 add_executable(targetC targetC.cpp)
-# Creates a generator expression for include directories like
-#  $<$<TARGET_DEFINED:$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:depG>>:\
-#    $<TARGET_PROPERTY:$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:depG>,INTERFACE_INCLUDE_DIRECTORIES>>
-target_link_libraries(targetC $<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:depG>)
+# The TARGET_PROPERTY expression is duplicated below to test that there is no
+# shortcutting of the evaluation by returning an empty string.
+set(_exe_test $<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>)
+target_link_libraries(targetC $<$<AND:${_exe_test},${_exe_test}>:depG>)

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=47b8d322a4d9598706948553dfbf9daebe80dcef
commit 47b8d322a4d9598706948553dfbf9daebe80dcef
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Mon Feb 25 15:26:37 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Mon Feb 25 15:33:03 2013 +0100

    Remove use of TARGET_DEFINED from the ExportImport test.
    
    Update the unit test introduced in commit 5daaa5c4 (Fix TARGET_PROPERTY
    target extractions., 2013-01-26) to not use the expression, but still
    test the appropriate code.

diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt
index ae938cd..c00ef82 100644
--- a/Tests/ExportImport/Export/CMakeLists.txt
+++ b/Tests/ExportImport/Export/CMakeLists.txt
@@ -149,7 +149,7 @@ set_property(TARGET testLibRequired APPEND PROPERTY
     $<BUILD_INTERFACE:$<TARGET_PROPERTY:testLibIncludeRequired5,INTERFACE_INCLUDE_DIRECTORIES>>
     $<INSTALL_INTERFACE:$<TARGET_PROPERTY:testLibIncludeRequired6,INTERFACE_INCLUDE_DIRECTORIES>>
     # Test that the below is non-fatal
-    $<$<TARGET_DEFINED:not_a_target>:$<TARGET_PROPERTY:not_a_target,INTERFACE_INCLUDE_DIRECTORIES>>
+    $<$<STREQUAL:one,two>:$<TARGET_PROPERTY:not_a_target,INTERFACE_INCLUDE_DIRECTORIES>>
 )
 
 set_property(TARGET testLibRequired APPEND PROPERTY

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2e39d21c87786d7b714dd0f88ec4386fce8ac0b1
commit 2e39d21c87786d7b714dd0f88ec4386fce8ac0b1
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Mon Feb 25 15:24:15 2013 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Mon Feb 25 15:25:38 2013 +0100

    Remove use of TARGET_DEFINED from target_include_directories test.
    
    Change the unit test introduced in commit 24dcf0c0 (Make sure
    generator expressions can be used with target_include_directories.,
    2013-01-16) to not use the expression, but still test the appropriate
    code.

diff --git a/Tests/CMakeCommands/target_include_directories/CMakeLists.txt b/Tests/CMakeCommands/target_include_directories/CMakeLists.txt
index c2da175..c03f0f8 100644
--- a/Tests/CMakeCommands/target_include_directories/CMakeLists.txt
+++ b/Tests/CMakeCommands/target_include_directories/CMakeLists.txt
@@ -30,12 +30,12 @@ target_include_directories(target_include_directories
   PUBLIC "${CMAKE_CURRENT_BINARY_DIR}/poison"
 )
 target_include_directories(target_include_directories
-  BEFORE PUBLIC "$<$<TARGET_DEFINED:target_include_directories>:${CMAKE_CURRENT_BINARY_DIR}/cure>"
+  BEFORE PUBLIC "$<$<STREQUAL:$<TARGET_PROPERTY:target_include_directories,TYPE>,EXECUTABLE>:${CMAKE_CURRENT_BINARY_DIR}/cure>"
 )
 
-# Has no effect because the target is not defined:
+# Has no effect because the target type is not SHARED_LIBRARY:
 target_include_directories(target_include_directories
-  BEFORE PUBLIC "$<$<TARGET_DEFINED:notdefined>:${CMAKE_CURRENT_BINARY_DIR}/poison>"
+  BEFORE PUBLIC "$<$<STREQUAL:$<TARGET_PROPERTY:target_include_directories,TYPE>,SHARED_LIBRARY>:${CMAKE_CURRENT_BINARY_DIR}/poison>"
 )
 
 add_executable(consumer

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

Summary of changes:
 Source/CMakeVersion.cmake                          |    2 +-
 Source/cmDocumentGeneratorExpressions.h            |    1 -
 Source/cmGeneratorExpressionEvaluator.cxx          |   18 ------------------
 .../target_compile_definitions/CMakeLists.txt      |    2 --
 .../target_compile_definitions/consumer.cpp        |    8 --------
 .../target_include_directories/CMakeLists.txt      |    6 +++---
 .../target_link_libraries/CMakeLists.txt           |    8 ++++----
 Tests/ExportImport/Export/CMakeLists.txt           |    2 +-
 8 files changed, 9 insertions(+), 38 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list