Re: [CMake] Add sources to a target library after add_library()?

2012-09-05 Thread Loaden
Yes, it simply for GCC. But it is diffrent for MSVC compiler. for MSVC, we have to use a .cpp file, e.g. stdafx.cpp to support precompiled. (/Yc flags) For now, I have to implement it like this to support both MSVC and GCC's PCH support. > set(target Core) > if (QTCREATOR_PRECOMPILED AND MSVC) >

Re: [CMake] Add sources to a target library after add_library()?

2012-09-05 Thread Mathias Gaunard
On 06/09/2012 00:30, Loaden wrote: Hi, I look this ML: http://www.cmake.org/pipermail/cmake/2010-January/034437.html Does CMake still can't support how to add sources to a target library after add_library()? I wan't support Precompiled Header for both MSVC / GCC(MinGW). In MSVC case, it need a so

[CMake] Add sources to a target library after add_library()?

2012-09-05 Thread Loaden
Hi, I look this ML: http://www.cmake.org/pipermail/cmake/2010-January/034437.html Does CMake still can't support how to add sources to a target library after add_library()? I wan't support Precompiled Header for both MSVC / GCC(MinGW). In MSVC case, it need a source, e.g. StdAfx.cpp to support PCH.

[CMake] OS X spaces in paths issue

2012-09-05 Thread David Gobbi
This might have already been answered on the list but it didn't come up in a search. Someone that I work with was trying to run a ctest dashboard-generation script on OS X, and ctest was reporting "There was an error: No such file or directory". Running "ctest -VV" gave more info about the error:

Re: [CMake] Boost_DIR

2012-09-05 Thread David Cole
On Wed, Sep 5, 2012 at 2:24 PM, David Doria wrote: > On Wed, Sep 5, 2012 at 2:16 PM, Klaim - Joël Lamotte > wrote: >> I might be wrong but my understanding is that it's the other way arround: >> you provide Boost_DIR (root of your boost installation) and it finds the >> rest itself. >> I've been

Re: [CMake] Boost_DIR

2012-09-05 Thread David Doria
On Wed, Sep 5, 2012 at 2:16 PM, Klaim - Joël Lamotte wrote: > I might be wrong but my understanding is that it's the other way arround: > you provide Boost_DIR (root of your boost installation) and it finds the > rest itself. > I've been using it like that. I have a custom build of boost in a spec

Re: [CMake] Boost_DIR

2012-09-05 Thread Klaim - Joël Lamotte
I might be wrong but my understanding is that it's the other way arround: you provide Boost_DIR (root of your boost installation) and it finds the rest itself. I've been using it like that. I have a custom build of boost in a specific directory and an environnement variable Boost_DIR set to it. I

Re: [CMake] Incremental linking and Intel fortan

2012-09-05 Thread Alexander Ivanov
Sorry for delay... I checked that setting CMAKE_EXE_LINKER_FLAGS without CACHE attribute doesnt make a change. But if I switched to NMake then all things started to work. Incremental linking is turned off, traceback works. Exactly the same CMakeLists.txt produces wrong project for VS. What do you

Re: [CMake] Boost_DIR

2012-09-05 Thread David Doria
On Wed, Jan 11, 2012 at 5:55 AM, Daniel Dekkers wrote: > Hi, does anyone know what this “Boost_DIR” variable is from the > findBoost.cmake module? And why it is never found? > > Everything works well, I use BOOST_ROOT to set the path to the Boost > distribution, just curious. > > Daniel I would l

Re: [CMake] GENERATE_EXPORT_HEADER

2012-09-05 Thread Sergiu Dotenco
On 9/5/2012 3:52 PM, Micha Renner wrote: > For static libraries the macro GENERATE_EXPORT_HEADER produce an output > like this one: > > ... > #else > # ifndef CTEST_EXPORT > #ifdef cTest_EXPORTS > /* We are building this library */ > # define CTEST_EXPORT > #else > /

[CMake] GENERATE_EXPORT_HEADER

2012-09-05 Thread Micha Renner
For static libraries the macro GENERATE_EXPORT_HEADER produce an output like this one: ... #else # ifndef CTEST_EXPORT #ifdef cTest_EXPORTS /* We are building this library */ # define CTEST_EXPORT #else /* We are using this library */ # define CTEST_EXPORT #

[CMake] adding extra files to distribution

2012-09-05 Thread Jack Stalnaker
Hi, I'm new to CMake, but quite familiar with Autotools. I am trying to do something that is probably quite simple, but I cannot find any documentation for. The distribution creation mechanism is difficult to learn because of the lack of documentation. For instance, it seems (though I'm not sure o

Re: [CMake] Different compiler in sub directory

2012-09-05 Thread Yuri Timenkov
It's better to use ExternalProject.cmake to configure part of your solution with different compiler. On Wed, Sep 5, 2012 at 12:09 PM, Nicholas Yue wrote: > Hi, > > I have a need to build different parts of a project using different > version of g++ > > If I set the top level CMakeLists.tx

Re: [CMake] unknown cmake command "configure_boost"

2012-09-05 Thread Benjamin Eikel
Am Mittwoch, 5. September 2012 um 12:55:50 schrieb geek121: > ^^ error is unknown cmake command "configure_boost" Why do you think "configure_boost" is a valid CMake command? I was not able to find it in the documentation. > > > > -- > View this message in context: > http://cmake.3232098.n2.n

Re: [CMake] cmake + VS 2012

2012-09-05 Thread Bill Hoffman
On 9/5/2012 1:59 AM, Biddiscombe, John A. wrote: I have tried VS 2012 and I'm not getting exceptions when cmake regenerates projects. They get reloaded by the IDE and so it looks like things are good. Only one day of trying, so I may still be disappointed, but so far I'm happy. Hopefully I won't

Re: [CMake] unknown cmake command "configure_boost"

2012-09-05 Thread geek121
^^ error is unknown cmake command "configure_boost" -- View this message in context: http://cmake.3232098.n2.nabble.com/unknown-cmake-command-configure-boost-tp7581513p7581514.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-s

[CMake] unknown cmake command "configure_boost"

2012-09-05 Thread geek121
I get this error in a cmake list ... -- View this message in context: http://cmake.3232098.n2.nabble.com/unknown-cmake-command-configure-boost-tp7581513.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-source projects at http

[CMake] Different compiler in sub directory

2012-09-05 Thread Nicholas Yue
Hi, I have a need to build different parts of a project using different version of g++ If I set the top level CMakeLists.txt compiler via -DCMAKE_CXX_COMPILER=/usr/local/bin/g++ and subsequently use another compiler SET ( CMAKE_CXX_COMPILER "/usr/bin/g++" )