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

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

2019-04-04 Thread Shoaib Meenai
Could you share more details about your CMake version, the platform you're on, and the generator you're using? I haven't run into this issue (and it's pretty counter to how I'd expect CMake to behave). The only similar setting I'm aware of is

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

2019-04-04 Thread Paul Smith
On Thu, 2019-04-04 at 06:56 +0100, Stephan Menzel wrote: > add_library(mylib STATIC mysources) > add_excecutable(mytest mytest.cpp) > target_link_libraries(mytest mylib) > > Now although I don't understand the exact reasons behind that, over > the years came to accept that depedencies between the

[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

[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"

[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

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

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

[CMake] Setting permissions with CPack/WiX installer

2019-04-04 Thread Cook, Steven (G)
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:

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

[Cmake-commits] CMake branch, master, updated. v3.14.1-592-g0dfb056

2019-04-04 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 0dfb056cd3fa655ddf3cabb6b3ce0309b3037ca1 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.14.1-596-g85b26a7

2019-04-04 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 85b26a7254ce66404227f2b715fd4e29c64668f6 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.14.1-608-g8c28e63

2019-04-04 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 8c28e63cb4da99dbb894573a996c27e260b5baeb (commit) via

[Cmake-commits] CMake branch, master, updated. v3.14.1-606-g56abc31

2019-04-04 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 56abc31270cbe60845021107383f1cede0ed075e (commit) via

[Cmake-commits] CMake branch, release, updated. v3.14.1-5-g192aa50

2019-04-04 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, release has been updated via 192aa506c66d5269e10d87f1a67df5397325a9af (commit) via

[Cmake-commits] CMake branch, master, updated. v3.14.1-609-g52fb35b

2019-04-04 Thread Kitware Robot via Cmake-commits
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 3ba392e..f4dacb4 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -1,5 +1,5 @@ # CMake version number components. set(CMake_VERSION_MAJOR 3) set(CMake_VERSION_MINOR 14) -set(CMake_VERSION_PATCH 20190404) +set(CMake_VER