Re: [CMake] Linking with MSVC against Boost lib fails to find library

2008-07-11 Thread Stephen Collyer
Doug Gregor wrote: > > So, it looks like Boost's auto-linking is trying to link against the > static program_options library (with the lib prefix), but CMake has > found the shared program_options library. You'll need to force it one > way or the other. > > If you want to force CMake to find the

Re: [CMake] CMAKE_CACHE_MAJOR_VERSION not set yet during initial cmake run

2008-07-11 Thread Alan W. Irwin
On 2008-07-11 11:03-0400 Wheeler, Frederick W (GE, Research) wrote: I'm trying to use CMAKE_CACHE_MAJOR_VERSION and CMAKE_CACHE_MINOR_VERSION to determine which version of cmake is being used, but it seems that these vars are not yet set during the first cmake run. This is demonstrated in a si

Re: [CMake] An example of DEFINE_SYMBOL please

2008-07-11 Thread Mike Jackson
On Jul 11, 2008, at 11:34 AM, Mehdi Rabah wrote: On Thu, Jul 10, 2008 at 12:43 PM, Yuri Timenkov <[EMAIL PROTECTED]> wrote: On Monday 07 July 2008 19:59:24 Mehdi Rabah wrote: > Hi, > > I need to set multiple symbols in one of my target of my project. I can't > use add_definitions beca

Re: [CMake] An example of DEFINE_SYMBOL please

2008-07-11 Thread Mehdi Rabah
On Thu, Jul 10, 2008 at 12:43 PM, Yuri Timenkov <[EMAIL PROTECTED]> wrote: > > > On Monday 07 July 2008 19:59:24 Mehdi Rabah wrote: > > Hi, > > > > I need to set multiple symbols in one of my target of my project. I can't > > use add_definitions because I don't want to define those variable for al

Re: [CMake] CMAKE_CACHE_MAJOR_VERSION not set yet during initial cmake run

2008-07-11 Thread Mike Jackson
I think what you want is: CMAKE_MAJOR_VERSION and CMAKE_MINOR_VERSION -- Mike Jackson Senior Research Engineer Innovative Management & Technology Services On Jul 11, 2008, at 11:03 AM, Wheeler, Frederick W (GE, Research) wrote: I'm trying to use CMAKE_CACHE_MAJOR_VERSION and CMAKE_C

[CMake] CMAKE_CACHE_MAJOR_VERSION not set yet during initial cmake run

2008-07-11 Thread Wheeler, Frederick W (GE, Research)
I'm trying to use CMAKE_CACHE_MAJOR_VERSION and CMAKE_CACHE_MINOR_VERSION to determine which version of cmake is being used, but it seems that these vars are not yet set during the first cmake run. This is demonstrated in a simple test case below. CMake is run twice, and you can see in the 'debu

Re: [CMake] Linking with MSVC against Boost lib fails to find library

2008-07-11 Thread Doug Gregor
On Fri, Jul 11, 2008 at 7:33 AM, Stephen Collyer <[EMAIL PROTECTED]> wrote: > I'm getting a link failure under Visual Studio with Boost. > The installed Boost library in question is: > > boost_program_options-vc80-mt-gd-1_34_1.lib > > In my CMakeLists.txt file, I refer to this lib via > > ${BOOST_P

[CMake] Linking with MSVC against Boost lib fails to find library

2008-07-11 Thread Stephen Collyer
I'm getting a link failure under Visual Studio with Boost. The installed Boost library in question is: boost_program_options-vc80-mt-gd-1_34_1.lib In my CMakeLists.txt file, I refer to this lib via ${BOOST_PROGRAM_OPTIONS_LIBRARY} However, the link fails with a message telling me that VS can't

Re: [CMake] FindQt

2008-07-11 Thread Leopold Palomo Avellaneda
A Dijous 10 Juliol 2008, Olaf Peter va escriure: > Hi, > > it would be great if FindQt (resp. FindQt4) would support a user file > extension for QT4_WRAP_UI, e.h. hpp for the ui header. *.hpp is a common > C++ header extension as I use it for my code. Since cmake 2.4.8 you have the OPTIONS paramet