Re: [cmake-developers] Kind-of standard way to support also in-project find-modules

2011-01-11 Thread Pau Garcia i Quiles
On Wed, Jan 12, 2011 at 12:18 AM, Brad King wrote: > On 01/11/2011 06:13 PM, Pau Garcia i Quiles wrote: >> What about something like this? >> >> if( FOO_USE_LOCAL_BAR) >>   set( CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/3rdparty ) >> endif(FOO_USE_LOCAL_BAR) >> >> find_package(BAR) >> >> It searches

Re: [cmake-developers] Kind-of standard way to support also in-project find-modules

2011-01-11 Thread Brad King
On 01/11/2011 06:13 PM, Pau Garcia i Quiles wrote: > What about something like this? > > if( FOO_USE_LOCAL_BAR) > set( CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/3rdparty ) > endif(FOO_USE_LOCAL_BAR) > > find_package(BAR) > > It searches the local directory first, then goes for system. Looks easi

Re: [cmake-developers] Kind-of standard way to support also in-project find-modules

2011-01-11 Thread Pau Garcia i Quiles
On Tue, Jan 11, 2011 at 11:55 PM, Brad King wrote: > Typically we use code of this form: > >  if(FOO_USE_SYSTEM_BAR) >    find_package(BAR) >  else() >    add_subdirectory(bar) >    set(BAR_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/bar/include) >    set(BAR_LIBRARY_DIRS ...) >    # ...set rest of

Re: [cmake-developers] .SUFFIXES: not used in Xcode CreateCustomRulesMakefile

2011-01-11 Thread David Cole
Thanks for the suggestion. I just committed this change and pushed it to 'next': http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=66d9cd83519962f320d4b6edefeb15ae250107ae Cheers, David On Tue, Jan 11, 2011 at 4:58 AM, Johan Björk wrote: > Hi everyone, > > The Makefile generation code in cm

Re: [cmake-developers] Kind-of standard way to support also in-project find-modules

2011-01-11 Thread Brad King
On 01/11/2011 04:18 PM, Alexander Neundorf wrote: > Well, there was the following commit in KDE for two module FindKExiv2.cmake > and FindKipi.cmake > For both modules it adds a variable _LOCAL_DIR, which can be > set if the using project doesn't use an externally installed KExiv2/Kipi, but > if

Re: [cmake-developers] Generating information for C++ tools in cmake (patch)

2011-01-11 Thread Manuel Klimek
Hi Alexander, On Tue, Jan 11, 2011 at 12:45 PM, Alexander Neundorf wrote: > Hi, > > On Tuesday 11 January 2011, Manuel Klimek wrote: >> Hi, >> >> we're working on C++ tools based on clang to get the power of >> automated refactoring and analysis that Java has known for years to >> C++ developers.

[cmake-developers] Kind-of standard way to support also in-project find-modules

2011-01-11 Thread Alexander Neundorf
Hi, not sure the subject says very good what I mean. Well, there was the following commit in KDE for two module FindKExiv2.cmake and FindKipi.cmake For both modules it adds a variable _LOCAL_DIR, which can be set if the using project doesn't use an externally installed KExiv2/Kipi, but if it h

Re: [cmake-developers] Generating information for C++ tools in cmake (patch)

2011-01-11 Thread Alexander Neundorf
Hi, On Tuesday 11 January 2011, Manuel Klimek wrote: > Hi, > > we're working on C++ tools based on clang to get the power of > automated refactoring and analysis that Java has known for years to > C++ developers. Sounds great :-) > With the attached patch I include a proposal for how we could ex

[cmake-developers] [CMake 0011684]: cmake fails OutDir test in gentoo linux

2011-01-11 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=11684 == Reported By:Theo Chatzimichos Assigned To:

[cmake-developers] [CMake 0011683]: Improve implementation of constructors

2011-01-11 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=11683 == Reported By:Markus Elfring Assigned To:

[cmake-developers] [CMake 0011682]: [enhancement] Add GNU versions for CMakeLists.txt processing, just like MSVC_VERSION

2011-01-11 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=11682 == Reported By:Maddes Assigned To:

[cmake-developers] [CMake 0011681]: Check return codes everywhere

2011-01-11 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=11681 == Reported By:Markus Elfring Assigned To:

[cmake-developers] .SUFFIXES: not used in Xcode CreateCustomRulesMakefile

2011-01-11 Thread Johan Björk
Hi everyone, The Makefile generation code in cmGlobalXCodeGenerator.cxx (cmGlobalXCodeGenerator::CreateCustomRulesMakefile) does not add a .SUFFIXES: call, resulting in make having implicit rules in place. The fix should be trivial, simply adding makefileStream << ".SUFFIXES: " << "\n"; after the