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

2018-08-21 Thread Ian Henriksen
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 brevity, but it sounds like you might be looking for the >> CXX_EXTENSIONS target property (sorry if I've mis

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

2018-08-21 Thread Craig Scott
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 brevity, but it sounds like you might be looking for the > CXX_EXTENSIONS target property (sorry if I've misunderstood your problem, > let me know why it isn't appropriate

Re: [CMake] Problem with creating shared library

2018-08-21 Thread Sebastián Mancilla
I fixed your problem. Get the attached patch and apply it with "git apply ". The kImageAnnotator constructor was private to the library (I just learned that Qt does that when creating shared libraries), and that's why you get the undefined reference error. You could have checked it with: nm lib/l

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

2018-08-21 Thread Robert Dailey
On Tue, Aug 21, 2018 at 3:47 PM Craig Scott wrote: > Excuse the brevity, but it sounds like you might be looking for the > CXX_EXTENSIONS target property (sorry if I've misunderstood your problem, let > me know why it isn't appropriate if so). See the following article for a more > complete ove

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

2018-08-21 Thread Craig Scott
On Tue, Aug 21, 2018 at 11:41 PM, Robert Dailey wrote: > I'll explain a bit why I'm asking. I noticed that for code bases that > work on Android plus other UNIX platforms, they unconditionally > specify `-stdlib=libc++`, however this doesn't work on Ubuntu by > default, which uses gnu stl + gcc/c

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

2018-08-21 Thread Richard Shaw
I have a cross platform project that I have building correctly for the STM32 platform on Fedora but everyone using Ubuntu is having problems. Basically, without --specs=nosys.specs applied during compiler testing, cmake fails. I have reports of this happening on Ubuntu 14.x, 16,x and have setup a

Re: [CMake] Problem with creating shared library

2018-08-21 Thread Eric Noulard
Le lun. 20 août 2018 à 19:05, Damir Porobic a écrit : > Hi Eric, > > > yes, this is the project. I have pushed my current state to this branch > https://github.com/DamirPorobic/kImageAnnotator/tree/sharedLibTestBranch > > I've tried also without the generate_export_headers (cleaned everything up

Re: [CMake] MPI: Undefined symbol

2018-08-21 Thread Haocheng Liu
This stackoverflow question might help you. On Tue, Aug 21, 2018 at 4:52 AM Florian Lindner wrote: > Hello, > > Am 20.08.18 um 17:49 schrieb Rafael Sadowski: > > On Mon Aug 20, 2

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

2018-08-21 Thread Robert Dailey
I'll explain a bit why I'm asking. I noticed that for code bases that work on Android plus other UNIX platforms, they unconditionally specify `-stdlib=libc++`, however this doesn't work on Ubuntu by default, which uses gnu stl + gcc/clang. So you get compiler errors. There's no way for me to "sear

Re: [CMake] Conflicting MSVC manifests

2018-08-21 Thread Bo Zhou
>From my personal experience, I suggest never touch the manifest, because it's not a useful configuration to solve the DLL hell issue since Windows XP. Instead, once we know the exact version of Visual Studio with Update, the distributor just ship the MSVC runtime installer with software, the inst

[CMake] Conflicting MSVC manifests

2018-08-21 Thread Øystein Walle
Hi, I am experiencing an error when trying to require administrator privileges on Windows. I have made a small test case[1] available to demonstrate the issue. CMake generates its own manifest and at link time MSVC is unable to merge CMake's and my own manifest, giving the following error: ma

Re: [CMake] MPI: Undefined symbol

2018-08-21 Thread Florian Lindner
Hello, Am 20.08.18 um 17:49 schrieb Rafael Sadowski: > On Mon Aug 20, 2018 at 04:24:07PM +0200, Florian Lindner wrote: >> Hello, >> >> copied from a working MPI CMakeLists.txt: >> >> find_package(MPI REQUIRED) > > https://cmake.org/cmake/help/v3.0/module/FindMPI.html > > MPI__FOUND TRU