[CMake] Suggestions needed for handling Fedora UsrMove

2013-03-12 Thread Orion Poplawski
In current Fedora, /sbin,/bin, and /lib are symbolic links to /usr/sbin, /usr/bin, and /usr/lib. This causes problems such as the one outlined here: https://bugzilla.redhat.com/show_bug.cgi?id=917407 where find_package(PKG NO_MODULE) will find PKGConfig.cmake in /lib/pkg/ instead of /usr/lib/pk

[CMake] Set target property default

2013-03-12 Thread Braden McDaniel
Is there some way to set the default value for a target property? That is, I have a flag that I'd like to apply to *everything* without setting it for each specific target. Specifically, I'm trying to use Whole Program Optimization in Visual Studio. As I understand it, I need to add "/LTCG" t

Re: [CMake] Problem with custom command

2013-03-12 Thread Robert Dailey
On second thought I think I realize the problem here... I'm not specifying the OUTPUT file as a dependency in add_library(), I'm only specifying the SOURCE file (listed under DEPENDS in the custom command call) as the source in add_library(). The output file is temporary, I don't actually want to d

[CMake] Problem with custom command

2013-03-12 Thread Robert Dailey
I'm adding a custom command to a target created via add_library(). here is the function I call to create the custom command: function( define_data target_name output_subdir ) set( data_files ${ARGN} ) set( output_dir ${CMAKE_BINARY_DIR}/output/data/${output_subdir} ) set( copycmd ${CM

Re: [CMake] Link something to future installed library

2013-03-12 Thread David Demelier
Le dimanche 10 mars 2013 17:14:01 Rolf Eike Beer a écrit : > David Demelier wrote: > > Hello, > > > > I'm trying to make a common core library that will help creating modules, > > my modules will link against it but this will not work as these modules > > will link against the library in the binar

Re: [CMake] CPack and windows maximum path legth

2013-03-12 Thread Jakub Zakrzewski
-Original Message- From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Dienstag, 12. März 2013 15:39 To: Jakub Zakrzewski Cc: cmake@cmake.org Subject: Re: [CMake] CPack and windows maximum path legth 2013/3/12 Jakub Zakrzewski : > Hi All! > > I have recently reached the maximum path

Re: [CMake] CPack and windows maximum path legth

2013-03-12 Thread Eric Noulard
2013/3/12 Jakub Zakrzewski : > Hi All! > > I have recently reached the maximum path length using CPack on windows. The > problem is that the project I'm working on has a directory hierarchy that > cannot be changed. Somebody some time ago decided on concrete paths and if I > try to change it, I

[CMake] CPack and windows maximum path legth

2013-03-12 Thread Jakub Zakrzewski
Hi All! I have recently reached the maximum path length using CPack on windows. The problem is that the project I'm working on has a directory hierarchy that cannot be changed. Somebody some time ago decided on concrete paths and if I try to change it, I got into real trouble. All our tools hav

Re: [CMake] How to set Overwrite or no over write in install(FILES ....)?

2013-03-12 Thread jupiter
Thanks Eric. That clarifies lots of things. Kind regards, Jupiter On 3/11/13, Eric Noulard wrote: > 2013/3/11 hce : >> Andreas Stahl wrote >>> Hello Jupiter, >>> >>> can you post the error message here? I wasn't aware that install(FILES >>> ...) did any checking besides comparing the dates an

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-12 Thread Florian Reinhard
When using the "linker" through CMAKE_CXX_LINK_EXECUTABLE you do not need to add the --run-linker when compiling sources, which (i think) is a bad idea. If you have a setup and time, i'd appreciate if you could investigate the crash of cmake upon the ABI tests (if they happen to you) since i can't

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-12 Thread Laszlo Papp
Oh, there is a "CMAKE_CXX_LINK_EXECUTABLE". That variable I did not know. It is nice to see that one does not need to force the compiler. That would be a bit nasty. :-) This feature seems to come along with the 2.8.11 release which is in the door. I will try to write a blog post about this once we

[CMake] "@expansion@"

2013-03-12 Thread Nicolas Tisserand
Hi all, The following CMake script outputs "foo": cmake_minimum_required(VERSION 2.8) set(VAR foo) message("@VAR@") I'm surprised by this behavior, and could not find anything about it in the documentation. I'm also further confused by the parallell existence of the string(CONFIGURE ... @ONLY@)

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-12 Thread Florian Reinhard
1. drop the TI_DSP*.cmake you can find linked below in your cmake/Modules/Compiler folder, i assumed this was already released since Alexander Neundorf merged the changes back in november http://cmake.org/gitweb?p=cmake.git;a=tree;f=Modules/Compiler;h=34a0ad1a5694082dc8ffc62c2ebeaa446ea09274;hb=ma