Re: [CMake] Global dependency

2014-08-26 Thread Petr Kmoch
Hi Jonas. As a hacky solution, you could override add_library() and add_executable(), like this: function(add_library targetName) _add_library(${targetName} ${ARGN}) add_dependencies(${targetName} BuildInfoDateTime) endfunction() Petr On Wed, Aug 27, 2014 at 5:44 AM, Jonas Lippuner wrote

Re: [CMake] Need to know the ASM flag that needs to be modified in cmake

2014-08-26 Thread Petr Kmoch
Hi Ravi, I've never used ASM_MASM (or any other language beside C, CXX and Fortran), but if it follows normal CMake language rules, the following variables should exist: CMAKE_ASM_MASM_FLAGS CMAKE_ASM_MASM_FLAGS_ (where is a placeholder for uppercase configuration name). See the list of per-la

[CMake] Global dependency

2014-08-26 Thread Jonas Lippuner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have a custom target called BuildInfoDateTime that generates a *.cpp file containing the date and time of the build. I specified the target with ALL, so it gets run if I simply type make. However, I would also like all other targets (executa

Re: [CMake] Controlling output of ctest

2014-08-26 Thread Ashok Nalkund
I think I've found the solution at http://www.vtk.org/Wiki/CMake_Testing_With_CTest. I'm going to try setting CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE and CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE and report back. Thanks, Ashok On 8/26/2014 6:24 PM, Ashok Nalkund wrote: Hi, I use c

[CMake] Controlling output of ctest

2014-08-26 Thread Ashok Nalkund
Hi, I use cmake/ctest to build and run my tests. I'm using "ctest -T Test -V --output-on-failure --no-compress-output -R ...". I noticed that some of the tests have truncated output in the Test.xml report. Also I see the truncation length is different in different scenarios. From what I see,

Re: [CMake] Switching between i386, i586 and i686

2014-08-26 Thread Chuck Atkins
Hi Amul, The -march flag doesn't automatically get set by CMake since it tends to be highly system specific; you'll need to explicitly add it to your CMAKE_{C,CXX,Fortran}_FLAGS variables if you want it used. The CMAKE_SYSTEM_PROCESSOR variable is usually used only for packaging to determine outp

[CMake] Switching between i386, i586 and i686

2014-08-26 Thread Amul Shah
My host machine is RedHat 6 i686. I was wondering how I could direct CMake to set -march to either i386 or i586 without manually setting -march=. I tried changing CMAKE_SYSTEM_PROCESSOR, but that did not work. thanks, Amul _ The information contained in this message is proprietary a

[CMake] Trouble with library Dependencies not being reflected in the generated project files

2014-08-26 Thread Austin Hicks
Hello, I'm having some interesting problems with dependencies, and I'm trying to determine if this is my fault or CMake's. For the record, I'm on cmake 3.0.1, Windows 7, and Visual Studio 2013. I've got a project consisting of a vendored copy of Portaudio, a shared library, and something

[CMake] Color Output with Ninja?

2014-08-26 Thread digitalriptide
Is there a way to enable color compiler messages with the ninja generator? With make and clang, for example, the makefile generator is able to produce color output. Thank you for your assistance. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www

Re: [CMake] Setting additional Plist values for OS X Bundle

2014-08-26 Thread Michael Jackson
Was hoping not to have to bring in a custom plist, but thanks for the heads up. Mike Jackson On Aug 25, 2014, at 1:48 PM, Clinton Stimpson wrote: > On Monday, August 25, 2014 01:10:27 PM Michael Jackson wrote: >> Are there are newer facilities in CMake 3.x that would allow me to add >> additio

Re: [CMake] pipe add_test() output into a file

2014-08-26 Thread Nico Schlömer
Thanks Nils! That does the trick. --Nico On Tue, Aug 26, 2014 at 12:03 PM, Nils Gladitz wrote: > On 08/26/2014 11:50 AM, Nico Schlömer wrote: >> >> I would like to add a test for a file converter. The output of the >> converter is written out to stdout, and I would like to direct this >> into a

[CMake] Windows Embedded Compact 2013 support

2014-08-26 Thread Pascal Bach
Hi. I would like to compile some software for Windows Embedded Compact 2013 (WEC2013). But I was unable to find any documentation about WEC2013 support. Does somebody already use CMake to build for Windows Embedded Compact 2013? Is it supported at all? If not where would I need to start to add su

Re: [CMake] organizing export link libraries

2014-08-26 Thread Ruslan Baratov via CMake
On 21-Aug-14 00:50, Nico Schl?mer wrote: Hi all, a general question: I have a dependency chain of libraries A -> B -> C -> ... -> Z and all of those libraries are built with CMake, using CMake's export functionality [1] to let the next in the chain know about its the dependencies. If all of t

Re: [CMake] Find SDL

2014-08-26 Thread Christer Solskogen
Benjamin Eikel writes: > > Hello Christer, > > Zitat von Christer Solskogen : > > > Hi! > > > > I have a cross compiler, installed into /opt/cross, which is > > compiled by me. This cross compiler (gcc) is sysroot aware, which > > means that every header and library is installed into > >

Re: [CMake] pipe add_test() output into a file

2014-08-26 Thread Nils Gladitz
On 08/26/2014 11:50 AM, Nico Schlömer wrote: I would like to add a test for a file converter. The output of the converter is written out to stdout, and I would like to direct this into a file to compare it against a reference file. The signature of add_test() [1] however doesn't seem to allow tha

[CMake] pipe add_test() output into a file

2014-08-26 Thread Nico Schlömer
Hi all, I would like to add a test for a file converter. The output of the converter is written out to stdout, and I would like to direct this into a file to compare it against a reference file. The signature of add_test() [1] however doesn't seem to allow that. How would you go about this proble