[CMake] -Wno-dev not working?

2015-05-26 Thread Tom Kacvinsky
Using cmake 2.8.11.2 built from source on Linux. I am using -Wno-dev at generation time: CC=gcc cmake -Wno-dev .. but I see messages like this: Warning: Source file "license_mailer_pkg.ads" is listed multiple times for target "license_gen" I thought -Wno-dev would turn this off. This is an ex

Re: [CMake] Per Target CMAKE_C??_FLAGS Reset/Redefinition

2015-05-26 Thread David Hauck
Hi Decker, On Tuesday, May 26, 2015 11:22 AM, CMake wrote: > SET_TARGET_PROPERTIES( PROPERTIES > COMPILE_FLAGS "${ExtraFlags}" > COMPILE_DEFINITIONS > "SIMPLE_FLAG;DEFINED_SYMBOL=;DEFINED_STRING=\"string value\"" > ) I'm not sure if this was meant as a s

Re: [CMake] Per Target CMAKE_C??_FLAGS Reset/Redefinition

2015-05-26 Thread David Hauck
Hi Murali, On Tuesday, May 26, 2015 11:07 AM, muralisr...@gmail.com wrote: > Hi David, > > The project that I am working on has similar needs of having different > flags for each target. I have placed the different targets in > different sub-folders and set the CMAKE_*_FLAGS. This approach seems

[CMake] Question about loading Toolchain files

2015-05-26 Thread Murali Paluru
Hi, The current way of specifying a toolchain file is during the configure step via the command line. mkdir /tmp/build && cd /tmp/build cmake -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain.cmake /path/to/source In the project that I am working on I need to load different toolchain files depending on

[CMake] fatal error with Cmake 3.2.2 running on NFS system, resolved if --debug-trycompile is given

2015-05-26 Thread Mark Lakata
If I run cmake 3.2.2 normally, I get errors like this: CMake Error: Remove failed on file: /home/UNIXHOME/mlakata/p4/acq/Sequel/basewriter/build/x86_64/Debug/CMakeFiles/CMakeTmp/.nfs0786c4ec398c: System Error: No such file or directory If it was just a warning, I would ignore it,

Re: [CMake] Per Target CMAKE_C??_FLAGS Reset/Redefinition

2015-05-26 Thread J Decker
SET_TARGET_PROPERTIES( PROPERTIES COMPILE_FLAGS "${ExtraFlags}" COMPILE_DEFINITIONS "SIMPLE_FLAG;DEFINED_SYMBOL=;DEFINED_STRING=\"string value\"" ) On Tue, May 26, 2015 at 11:07 AM, Murali Paluru wrote: > Hi David, > > The project that I am working on h

Re: [CMake] Per Target CMAKE_C??_FLAGS Reset/Redefinition

2015-05-26 Thread Murali Paluru
Hi David, The project that I am working on has similar needs of having different flags for each target. I have placed the different targets in different sub-folders and set the CMAKE_*_FLAGS. This approach seems to work fine as you mentioned. >From my understanding, a new add_subdirectory creates