[CMake] Configuration time "custom command"

2019-04-09 Thread Israel Israeli
Hello, We are using a large project that comes with it's own build and configuration system. We have multiple issues with this external build system and we want to move the building of this project to cmake (as well as our code that depends on it). All the problems are related to the `build` step

[CMake] Working around target needing many include directories

2019-04-09 Thread Israel Israeli
We are using a library that adds all of it's subdirectories to the include search path (hundreds of directories and thousands of files). This is done because they change their folder structure constantly (but we don't care as we are upgrading every once in a while and can adjust). We don't want thi

Re: [CMake] Remove compilation flags for a given target

2019-04-09 Thread Florent Castelli
I believe that your targets should be using something like: target_compile_options(yourlib PRIVATE -Wwhatever) They will be built with said warnings, but it won't be propagated to consumers of the library. So you shouldn't have to remove anything. On Tue, Apr 9, 2019 at 8:47 AM Benjamin Orgogozo

Re: [CMake] Ubuntu CMake Repository Now Available

2019-04-09 Thread Hahn, Steven E. via CMake
Would you consider updating the Ubuntu 18.04 package to depend on libcurl4? Unfortunately libcurl3 conflicts with libcurl4, and I need to keep the later installed for packages that depend on it. The Ubuntu-provided CMake package appears to be built against libcurl4. Steven On 4/5/19, 3:17 PM,

[CMake] RC compilation failing

2019-04-09 Thread Gonzalo Garramuño
I had a resource.rc file and a resource.h file with just an ICON to provide the icon to my application.  However, since a week or so ago, RC refuses to compile it, giving the not very helpful message: Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336 Copyright (C) Microsoft Cor

Re: [CMake] Ubuntu CMake Repository Now Available

2019-04-09 Thread Benjamin Shadwick
I believe it's possible to specify an "or" rule so that it would work with either package. It should probably require the one it's built against though, or at least prefer it if it works with both. On Tue, Apr 9, 2019 at 12:32 PM Hahn, Steven E. via CMake wrote: > Would you consider updating the

Re: [CMake] Ubuntu CMake Repository Now Available

2019-04-09 Thread Kyle Edwards via CMake
Rebuilt for 18.04 and verified to depend on libcurl4. The new package version is "3.14.1-0kitware1ubuntu18.04.1". Kyle On Tue, 2019-04-09 at 13:38 -0700, Benjamin Shadwick wrote: > I believe it's possible to specify an "or" rule so that it would work > with either package. It should probably requir

Re: [CMake] RC compilation failing

2019-04-09 Thread Zan Lynx
On April 9, 2019 1:51:52 PM MDT, "Gonzalo Garramuño" wrote: >I had a resource.rc file and a resource.h file with just an ICON to >provide the icon to my application.  However, since a week or so ago, >RC >refuses to compile it, giving the not very helpful message: > >Microsoft (R) Windows (R) Re

Re: [CMake] Setting permissions with CPack/WiX installer

2019-04-09 Thread
> I have made a very simple example that generates a WIX installer for a > single file but fails to set the permissions on the file. Do you have any > suggestions of why this isn't working? Problem solved - when cpack is run with no parameters, the permissions tags are not generated, but when run