Re: [CMake] add_executable question

2015-01-21 Thread Iosif Neitzke
set( PROJ_NAME Test01 ) file( GLOB ${PROJ_NAME}_SRC *.h *.cpp ) add_executable( ${PROJ_NAME} ${${PROJ_NAME}_SRC} ) On Thu, Jan 22, 2015 at 1:05 AM, Eric Noulard wrote: > > > 2015-01-22 3:41 GMT+01:00 Joshua Robinson : >> >> >> Greetings, >> >> Can I add a variable, was set before, to add_executa

Re: [CMake] add_executable question

2015-01-21 Thread Eric Noulard
2015-01-22 3:41 GMT+01:00 Joshua Robinson : > > Greetings, > > Can I add a variable, was set before, to add_executable ? > I guess yes. However if "PROJ_NAME" value was used in project(Test01 C CXX) then there may be a conflict between "project name" and a "target name" > > set(PROJ_NAME Test0

[CMake] Pre-compiled headers

2015-01-21 Thread Scott Aron Bloom
Is there any builtin CMake support for compiler independent support for pre-compiled headers? I have found a couple of hacks out there for MSVC, and some for gcc.. but nothing that is all inclusive, and frankly none that look up to the quality of CMake :) Scott -- Powered by www.kitware.com

[CMake] add_executable question

2015-01-21 Thread Joshua Robinson
Greetings, Can I add a variable, was set before, to add_executable ? set(PROJ_NAME Test01) ,,, file( GLOB ${PROJ_NAME}_SRC "*.h" "*.cpp" ) add_executable( ${PROJ_NAME} ${PROJ_NAME}_SRC) ... error in add_executable(..) Any help is appreciated. Best Regards, Joshua Robinson -- Powered by www.

Re: [CMake] Problem with library link order

2015-01-21 Thread Brad King
On 01/20/2015 12:57 PM, Tom Kacvinsky wrote: > there are some static archives we build that depend on a third party > static archive (one we don't build - it comes with the Ada compiler > we are using), yet the third part archive is on the link line (as > given by the link.txt file) *before* the st

Re: [CMake] cmake --build parallel options (was: VS2012 builds using v3.1.0 are a lot slower than v2.8.12)

2015-01-21 Thread Paul Smith
On Wed, 2015-01-21 at 11:12 -0500, Brad King wrote: > Rather than requiring users to run > > cmake --build . -- $tool_specific_parallel_option > > to get a parallel build we could instead extend the "cmake --build" > command to support an option mapping to the right parallel option > underneath:

Re: [CMake] cmake --build parallel options (was: VS2012 builds using v3.1.0 are a lot slower than v2.8.12)

2015-01-21 Thread Brad King
On 01/21/2015 11:00 AM, Hendrik Sattler wrote: > This makes cmake --build much less predictable across cmake versions and > cmake projects. > How can I find out if msbuild is chosen without inspecting the cmake project? One can't, but that is a fault of VS and/or Intel Fortran for having cases th

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-21 Thread Robert Dailey
Thanks for your help so far. Your 3rd command produced the output below. I'll keep looking into this but just wanted to share. I'm not sure why it isn't working, and I'm not completely familiar with linux development so it will take me a while to figure this out. robert@robert-OptiPlex-745 ~ $ cla

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-21 Thread Hendrik Sattler
Hi, This makes cmake --build much less predictable across cmake versions and cmake projects. How can I find out if msbuild is chosen without inspecting the cmake project? Specifying this manually is not really an option... too complicated. Or like that: - run CMake - get the CMAKE_VS_MSBUILD...

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-21 Thread Brad King
On 01/20/2015 03:40 PM, Paul Smith wrote: > Where can I go to find out more about how cmake --build chooses whether > to use msbuild vs. devenv? The behavior was updated in 3.0 and is now described here: http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_MAKE_PROGRAM.html In 2.8.12 and below w

Re: [CMake] Problem with library link order

2015-01-21 Thread Tom Kacvinsky
Unfortunately, that is not what I've found. There are libraries we build that have their own target_link_libraries, and if these libraries are used on the target_link_libraries for an executable, its dependencies are also pulled into the executables link line. This is expected, handling of transi

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-21 Thread Yves Frederix
Ok, so it all seems to boil down to the following: - 2.8.12: "cmake --build" uses devenv to build, which in turn picks up a setting ("maximum number of parallel project builds") from the VS IDE at build time. As this was set to 8 on my machine, by default the build used parallellization with 8 co

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-21 Thread Nils Gladitz
I am not sure what else it could be. Here are some queries I did on my system where it seems to be working; perhaps it will help you backtrack the issue: Ubuntu 14.04.1 LTS (64-bit) # gcc --version : gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 # clang --version : Ubuntu clang version 3.4-1ubuntu3 (tag

Re: [CMake] CPack in CMake 3.1.0 doesn't install files

2015-01-21 Thread NoRulez
Hi, it should also not work when you build a test project in release mode and then in the build directory type "cpack -G ZIP" for example. (Without the -C option) In the CTestScript is also added the -C option to ensure it uses the release mode, but it doesn't work either. When you then open t