Re: [CMake] Relink on library rebuild dilema

2010-11-28 Thread Bill Hoffman
On 11/28/2010 3:19 AM, Sebastian Schaetz wrote: Michael Hertling writes: 1) In the top-level CMakeLists.txt, you might say SET_SOURCE_FILES_PROPERTIES( main.cpp PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/kernels/libkernel_executable.a ) When libkernel_executable.a has ch

Re: [CMake] Error using CMake 2.8.x, Visual Studio 2010, and multiple platform SDKs.

2010-11-28 Thread Bill Hoffman
On 11/24/2010 5:02 PM, Ted Berg wrote: I'm seeing a reproducible failure generating "Visual Studio 10" output on a system with the following installed: CMake 2.8.2 CMake 2.8.3 Visual Studio 2005 Visual Studio 2010 Program Files\Microsoft SDKs\Windows v6.1 v7.0A v7.1 To keep everythin

Re: [CMake] cmake config.h

2010-11-28 Thread luxInteg
On Sunday 28 November 2010 15:21:45 Michael Jackson wrote: > Those variables are specific for the project you are trying to > convert. For example if this was the LibTiff project then you might > have something like: > > #define PACKAGE"libTif" > #define PACKAGE_BUGREPORT "b...@libtiff.com"

Re: [CMake] cmake config.h

2010-11-28 Thread Michael Jackson
Those variables are specific for the project you are trying to convert. For example if this was the LibTiff project then you might have something like: #define PACKAGE"libTif" #define PACKAGE_BUGREPORT "b...@libtiff.com" #define PACKAGE_VERSION "8.9.10" You can set these as CMake varables

Re: [CMake] cmake config.h

2010-11-28 Thread luxInteg
On Sunday 28 November 2010 14:04:50 luxInteg wrote: > headers, datatypes, functions seem straight forward, I currently have a > config.h.inrefering to 'package' (I assume something to do with > pkgconfig ) for which I have not a clue how to translate using the > tools above:- The said

Re: [CMake] cmake config.h

2010-11-28 Thread luxInteg
On Saturday 27 November 2010 14:58:15 Michael Jackson wrote: > # In this file we are doing all of our 'configure' checks. Things like > checking # for headers, functions, libraries, types and size of types. > INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake) .. > # To check for an include file

Re: [CMake] Relink on library rebuild dilema

2010-11-28 Thread Sebastian Schaetz
Michael Hertling writes: > 1) In the top-level CMakeLists.txt, you might say > > SET_SOURCE_FILES_PROPERTIES( > main.cpp PROPERTIES OBJECT_DEPENDS > ${CMAKE_CURRENT_BINARY_DIR}/kernels/libkernel_executable.a > ) > > When libkernel_executable.a has changed, this results in recompiling >

Re: [CMake] How to apply the --as-needed linker flag?

2010-11-28 Thread Alan W. Irwin
On 2010-11-28 06:39+0100 Michael Hertling wrote: On 11/27/2010 06:45 PM, Alan W. Irwin wrote: I just discovered that many Linux distros these days use the --as-needed Linux linker option by default. At first glance that option makes a lot of sense since it tends to reduce startup times. But I