[CMake] Why does pkg_check_modules not use CMAKE_SYSTEM_PREFIX_PATH?

2018-08-22 Thread Shoaib Meenai
Hi, I'm using CMake for cross-compilation, and I have a toolchain file which sets CMAKE_SYSTEM_PREFIX_PATH accordingly. I'm running into issues with pkg_check_modules not finding some modules because it only searches inside CMAKE_PREFIX_PATH and not CMAKE_SYSTEM_PREFIX_PATH (where my *.pc files

Re: [CMake] Build flags not applied during compiler testing on Ubuntu

2018-08-22 Thread Brad King
On 08/22/2018 04:23 PM, Richard Shaw wrote: > Currently I'm using an "include" of the toolchain file prior to calling > "project" since 100% of development happens on a PC instead of having > to pass the CMAKE_TOOLCHAIN_FILE option every time. CMAKE_TOOLCHAIN_FILE must be used in order to be prope

Re: [CMake] Build flags not applied during compiler testing on Ubuntu

2018-08-22 Thread Richard Shaw
On Wed, Aug 22, 2018 at 3:02 PM Brad King wrote: > On 08/22/2018 03:49 PM, Richard Shaw wrote: > > Initially I tried setting the flags before invoking "project" and that > seemed > > to be enough for Fedora. I've tried other things as well that I've > probably > > forgotten but one other method I

Re: [CMake] Problem with creating shared library

2018-08-22 Thread Damir Porobic
Thanks you Sebastián for finding the issue and fixing the CMake, probably would have never found out that it was set to private. The kImageAnnotator-example is working now as expected. Do I need something else, except installing the lib, in order to use it in different projects? I've created a

Re: [CMake] Build flags not applied during compiler testing on Ubuntu

2018-08-22 Thread Brad King
On 08/22/2018 03:49 PM, Richard Shaw wrote: > Initially I tried setting the flags before invoking "project" and that seemed > to be enough for Fedora. I've tried other things as well that I've probably > forgotten but one other method I tried was: > > set(CMAKE_REQUIRED_DEFINITIONS "--specs=nosys.

Re: [CMake] Build flags not applied during compiler testing on Ubuntu

2018-08-22 Thread Richard Shaw
On Wed, Aug 22, 2018 at 1:51 PM Brad King wrote: > On 08/21/2018 03:18 PM, Richard Shaw wrote: > > without --specs=nosys.specs applied during compiler testing, cmake fails. > > How is this flag specified when invoking CMake? > Initially I tried setting the flags before invoking "project" and tha

Re: [CMake] Build flags not applied during compiler testing on Ubuntu

2018-08-22 Thread Brad King
On 08/21/2018 03:18 PM, Richard Shaw wrote: > without --specs=nosys.specs applied during compiler testing, cmake fails. How is this flag specified when invoking CMake? > https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1787723 According to that discussion it works on Fedora but not on Ubuntu

Re: [CMake] Export a custom property of a target

2018-08-22 Thread Marc CHEVRIER
'define_property' is nearly useless except for documentation. Export of custom properties is managed through target property 'EXPORT_PROPERTIES'. Le mer. 22 août 2018 à 15:58, Raphael Grimm a écrit : > Hi, > > I added a custom target property via 'define_property' > (https://cmake.org/cmake/he

[CMake] Export a custom property of a target

2018-08-22 Thread Raphael Grimm
Hi, I added a custom target property via 'define_property' (https://cmake.org/cmake/help/latest/command/define_property.html). When using this target in a different cmake project the property is not found by cmake and the meta information stored in the target property is lost. Is there a w

Re: [CMake] [cmake-developers] libc++ usage in CMake with Clang?

2018-08-22 Thread Craig Scott
On Wed, Aug 22, 2018 at 1:39 PM, Ian Henriksen < insertinterestingnameh...@gmail.com> wrote: > > > On Tue, Aug 21, 2018 at 6:40 PM Craig Scott > wrote: > >> >> On Wed, Aug 22, 2018 at 7:18 AM, Robert Dailey >> wrote: >> >>> On Tue, Aug 21, 2018 at 3:47 PM Craig Scott >>> wrote: >>> > Excuse the