[CMake] Object library doesn't work with CMake 2.8.10.2 Xcode generator

2013-01-03 Thread Bin Chen
Following CMakeLists.txt doesn't work with Xcode (4.5.2). Is there anyone experienced the same? Thanks! Visual Studio 10 and Linux makefile works fine. cmake_minimum_required ( VERSION 2.8.8 ) project( test ) add_library( a_obj OBJECT t1.c t2.c ) add_library( b_obj OBJECT t3.c t4.c ) add_libra

Re: [CMake] Object library doesn't work with CMake 2.8.10.2 Xcode generator

2013-01-03 Thread David Cole
We have a test of OBJECT_LIBRARY that does work on all our dashboards, including ones running with Xcode. When you say "it doesn't work" -- what do you mean? Do you get some error output? On Thu, Jan 3, 2013 at 3:56 PM, Bin Chen wrote: > Following CMakeLists.txt doesn’t work with Xcode (4.5.2

Re: [CMake] Object library doesn't work with CMake 2.8.10.2 Xcode generator

2013-01-03 Thread David Cole
> *From:* David Cole [mailto:david.c...@kitware.com] > *Sent:* Thursday, January 03, 2013 1:26 PM > *To:* Bin Chen > *Cc:* cmake@cmake.org > *Subject:* Re: [CMake] Object library doesn't work with CMake 2.8.10.2 > Xcode generator > > > > We have a test of OBJECT_LIBRA

Re: [CMake] Object library doesn't work with CMake 2.8.10.2 Xcode generator

2013-01-03 Thread Bin Chen
ards, Bin Chen From: David Cole [mailto:david.c...@kitware.com] Sent: Thursday, January 03, 2013 1:26 PM To: Bin Chen Cc: cmake@cmake.org Subject: Re: [CMake] Object library doesn't work with CMake 2.8.10.2 Xcode generator We have a test of OBJECT_LIBRARY that does work on all our dashboards

Re: [CMake] Object library doesn't work with CMake 2.8.10.2 Xcode generator

2013-01-04 Thread Brad King
On 01/03/2013 04:33 PM, Bin Chen wrote: > clang: error: no such file or directory: > '/Users/bchen/share/temp/cmake-obj-lib/b-xcode/Debug/liba.a' > clang: error: no such file or directory: > '/Users/bchen/share/temp/cmake-obj-lib/b-xcode/Debug/libb.a' Xcode does not seem to recognize targets tha