The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15346 
====================================================================== 
Reported By:                Daniele E. Domenichelli
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15346
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-01-13 11:41 CET
Last Modified:              2015-01-13 11:41 CET
====================================================================== 
Summary:                    Xcode generator default target is no longer
"ALL_BUILD"
Description: 
Since CMake 3.1, the order of the targets is changed and therefore the default
target for Xcode generator is no longer "ALL_BUILD" if there is at least one
install command. Also some other custom targets were moved to the top of the
list.

Steps to Reproduce: 
Using this small project:

  cmake_minimum_required(VERSION 2.8.9)
  project(FOO)
  install(CODE "message(FATAL_ERROR \"This fatal error should not happen\")")



- CMake 3.0.2

   * "xcodebuild -list" prints

       Targets:
          ALL_BUILD
          ZERO_CHECK
          install

   * "xcodebuild" executes the "ALL_BUILD" target

   * "cmake --build ." executes the "ALL_BUILD" target


- CMake 3.1

   * "xcodebuild -list" prints

       Targets:
          install
          ALL_BUILD
          ZERO_CHECK

   * "xcodebuild" executes the "install" target (and fails)

   * "cmake --build ." executes the "ALL_BUILD" target


Building the project with "cmake --build ." still works because it calls the
correct target, but "xcodebuild" fails because the "install" target is called
instead of the "ALL_BUILD" one.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-01-13 11:41 Daniele E. DomenichelliNew Issue                               
    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to