[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.102 1.103

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Sep 7 10:12:22 EDT 2009


Update of /cvsroot/CMake/CMake/Tests
In directory public:/mounts/ram/cvs-serv15910/Tests

Modified Files:
	CMakeLists.txt 
Log Message:
Put custom commands in topological order for VS 10

Visual Studio 10 uses MSBuild to drive the build.  Custom commands
appear in MSBuild files inside CustomBuild elements, which appear inside
ItemGroup elements.  The Outputs and AdditionalInputs elements of each
CustomBuild element are evaluated according to timestamps on disk.

MSBuild does not use inputs/outputs to order CustomBuild steps within a
single ItemGroup or across multiple ItemGroup elements.  Instead we must
put only unrelated CustomBuild elements in a single ItemGroup and order
the item groups from top to bottom using a topological order of the
custom command dependency graph.

This fixes CustomCommand and ExternalProject test failures, so we remove
the expectation of these failures.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CMakeLists.txt,v
retrieving revision 1.102
retrieving revision 1.103
diff -C 2 -d -r1.102 -r1.103
*** CMakeLists.txt	28 Aug 2009 15:08:39 -0000	1.102
--- CMakeLists.txt	7 Sep 2009 14:12:18 -0000	1.103
***************
*** 572,584 ****
      SET_TESTS_PROPERTIES(ExternalProject PROPERTIES TIMEOUT 1000)
    ENDIF("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
-   # CustomCommand and ExternalProject fail because of this bug:
-   # http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=473709
-   # so for this version of the compiler with the IDE expect failure
-   IF("${MSVC_VERSION}" EQUAL 1600 
-       AND "${CMAKE_TEST_GENERATOR}"
-       MATCHES "Visual Studio 10" )
-     SET_TESTS_PROPERTIES(ExternalProject PROPERTIES WILL_FAIL TRUE)
-     SET_TESTS_PROPERTIES(CustomCommand PROPERTIES WILL_FAIL TRUE)
-   ENDIF()
  
    # do each of the tutorial steps
--- 572,575 ----



More information about the Cmake-commits mailing list