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
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
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
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.
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
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:
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
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
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...
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
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
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
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
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
14 matches
Mail list logo