Re: [CMake] Fake dependencies of executables to static libs

2019-04-04 Thread Stephan Menzel
Hello Francis, On Thu, Apr 4, 2019 at 6:49 PM Francis Giraldeau < francis.girald...@gmail.com> wrote: > Maybe the problem is related to Cotire? I see that it is used in > mredis. I tried to reproduce the issue, and it behaves correctly. You > might want to try to reproduce using the following min

[CMake] Setting permissions with CPack/WiX installer

2019-04-04 Thread
Hi all, I would like to set the permissions on some files and directories in my WiX installer. It looks like the CPACK_WIX_ACL property should be suitable, but I can't get it to work. There are examples of its usage in this project: https://github.com/ngladitz/cmake-wix-testsuite/tree/master/pro

Re: [CMake] Eclipse generator question

2019-04-04 Thread Benjamin Shadwick
Ah, it seems my CMake is too old to produce compile_commands.json. Maybe this is part of why other IDEs are working better at home on Ubuntu MATE LTS. Unfortunately Red Hat ships CMake 2.8.12.2 even in recent RHEL releases, which is now approaching 5 years old (yikes!). Apparently they ship CMake

Re: [CMake] Fake dependencies of executables to static libs

2019-04-04 Thread Francis Giraldeau
Maybe the problem is related to Cotire? I see that it is used in mredis. I tried to reproduce the issue, and it behaves correctly. You might want to try to reproduce using the following minimal repo: https://gitlab.com/fgiraldeau/cotire-demo Francis Le jeu. 4 avr. 2019 à 03:17, Stephan Menzel

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

2019-04-04 Thread Mateusz Loskot
On Thu, 4 Apr 2019 at 14:47, Benjamin Orgogozo wrote: > > If I'm right (I'm far from being a cmake expert) there are two ways to > define "global" compilation flags: > 1- set the CXX_COMPILE_FLAGS variable; > 2- use add_compile_options($<$:-WMyFavouriteWarning). The list should rather be, in pref

[CMake] Android Cross Compilation with Xamarin

2019-04-04 Thread Daniel Wynne
Hi All! Wwe would like to set up a Android cross compilation project for Visual Studio using the Xamarin Framework. Could you please give us a few hints on what would be the best approach to achieve this? Another question is, why the NVidia Tegra Plugin is mandatory for Vi

[CMake] Remove compilation flags for a given target

2019-04-04 Thread Benjamin Orgogozo
Hello, in our code base we would like to add a warning compilation flags. Nevertheless, this flag prevents us from compiling a few targets so we would like to remove this flag for the given targets. If I'm right (I'm far from being a cmake expert) there are two ways to define "global" compilation

[CMake] dll artifacts - Runtime or Library Output

2019-04-04 Thread Kerstin Keller
On Windows, a .dll is considered by CMake to be a "RUNTIME" Output artifact if it was added with the `add_library(my_liib SHARED my_lib.cpp), however if it was added with the MODULE keyword, it is considered to be a "LIBRARY" output, as stated in the documentation https://cmake.org/cmake/help/lates

Re: [CMake] Fake dependencies of executables to static libs

2019-04-04 Thread Stephan Menzel
Hello Paul and Shoaib, I'm answering to the both of you. On Thu, Apr 4, 2019 at 7:13 AM Paul Smith wrote: > Now although I don't understand the exact reasons behind that, over the > years came to accept that depedencies between the lib and the resulting > artifcats are not working. Like, when I