Re: [CMake] modifying cmake_build_type cflags per target

2019-11-19 Thread Eric Doenges
Am 19.11.19 um 22:51 schrieb Craig Scott: On Tue, Nov 19, 2019 at 10:36 PM Eric Doenges > wrote: Am 19.11.19 um 12:09 schrieb Stéphane Ancelot: Hi, I have a particular target (using swig / jni) that must not have -O3 -NDEBUG flags from Relase

[Cmake-commits] CMake branch, master, updated. v3.16.0-rc4-381-g5f630a934a

2019-11-19 Thread Kitware Robot via Cmake-commits
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 8a606d4b6f..102b3defc1 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -1,7 +1,7 @@ # CMake version number components. set(CMake_VERSION_MAJOR 3) set(CMake_VERSION_MINOR 16) -set(CMake_VERSION_PATCH 2019

[CMake] Missing dll on program startup - a way automate it?

2019-11-19 Thread cen
Hi Perhaps not really a cmake problem but here we go. An exe depends on a few DLLs which I ship in the repo so the rest of the devs don't have to build them or fetch them somewhere else. Cmake finds the libraries and project builds just fine, until you run it from VS.. you are welcomed by

[CMake] Testing an exe with gtest - possible?

2019-11-19 Thread cen
Hi I have an existing c++ exe project which I want to test with gtest. I have not yet found an easy way to keep the project as is and test it directly since gtest insists (obviously) to link against the code being tested. I found a smart answer on SO to link against object files and that

Re: [CMake] modifying cmake_build_type cflags per target

2019-11-19 Thread Craig Scott
On Tue, Nov 19, 2019 at 10:36 PM Eric Doenges wrote: > Am 19.11.19 um 12:09 schrieb Stéphane Ancelot: > > Hi, > > I have a particular target (using swig / jni) that must not have -O3 > -NDEBUG flags from Relase build type > > How can I overload this target flags ? > > Since CMAKE__FLAGS_RELEASE

[Cmake-commits] CMake branch, master, updated. v3.16.0-rc4-380-g9e9787f19a

2019-11-19 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 9e9787f19a69ed6e0482d29a508548b048dd025d (commit) via

[Cmake-commits] CMake branch, master, updated. v3.16.0-rc4-378-g3520208cbd

2019-11-19 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 3520208cbd0ebf9f3db1a9711b49286462cd7e54 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.16.0-rc4-376-ga1d0653fc8

2019-11-19 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 a1d0653fc8d8cc07aa130920b86e605e17beaa79 (commit) via

Re: [CMake] Dependencies of an external project

2019-11-19 Thread Marc CHEVRIER
ExternalProject does its work at build time, so too late for find_package which is executed at config time. Have a look at module FetchContent which does its work before config time. Le 19 nov. 2019 à 16:13 +0100, hex , a écrit : > I have an external CMake project that gets exported on install.

[CMake] Dependencies of an external project

2019-11-19 Thread hex
I have an external CMake project that gets exported on install. The root project uses it as a package. The external project must be installed prior being used as a package. I can solve this problem by using `ExternalProject` for both projects and declare their dependency. My setup is

Re: [CMake] Build dependent targets

2019-11-19 Thread Eric Noulard
Le mar. 19 nov. 2019 à 11:52, Ellon Paiva a écrit : > Hi Eric, > > On 11/19/19 11:10 AM, Eric Noulard wrote: > > > > Le mar. 19 nov. 2019 à 11:03, Ellon Paiva a écrit : > >> Hi, >> >> I was wondering: is there any way to compile all targets that depend on >> a given target ? (i.e. the

Re: [CMake] modifying cmake_build_type cflags per target

2019-11-19 Thread Eric Doenges
Am 19.11.19 um 12:09 schrieb Stéphane Ancelot: Hi, I have a particular target (using swig / jni) that must not have -O3 -NDEBUG flags from Relase build type How can I overload this target flags ? Since CMAKE__FLAGS_RELEASE does not map to a user-visible target property, you cannot

[CMake] modifying cmake_build_type cflags per target

2019-11-19 Thread Stéphane Ancelot
Hi, I have a particular target (using swig / jni) that must not have -O3 -NDEBUG flags from Relase build type How can I overload this target flags ? Regards, S.Ancelot -- Powered by kitware.com/cmake Kitware offers various services to support the CMake community. For more information

Re: [CMake] Build dependent targets

2019-11-19 Thread Ellon Paiva
Hi Eric, On 11/19/19 11:10 AM, Eric Noulard wrote: Le mar. 19 nov. 2019 à 11:03, Ellon Paiva > a écrit : Hi, I was wondering: is there any way to compile all targets that depend on a given target ? (i.e. the "dependent targets", if my English

Re: [CMake] Build dependent targets

2019-11-19 Thread Eric Noulard
Le mar. 19 nov. 2019 à 11:03, Ellon Paiva a écrit : > Hi, > > I was wondering: is there any way to compile all targets that depend on > a given target ? (i.e. the "dependent targets", if my English does not > fail). > > In my particular case, I have a huge project that contains many libs and >

[CMake] Build dependent targets

2019-11-19 Thread Ellon Paiva
Hi, I was wondering: is there any way to compile all targets that depend on a given target ? (i.e. the "dependent targets", if my English does not fail). In my particular case, I have a huge project that contains many libs and executables, and I would like to check that the targets that