[CMake] Can't get CMake to link pthreads to my lib

2017-08-08 Thread Jean-Michaël Celerier
nvocation is : /usr/bin/g++ -fconcepts -fsanitize=address -fsanitize=undefined -std=c++17 -fconcepts -fsanitize=address -fsanitize=undefined CMakeFiles/complete.dir/examples/udp.cpp.o -o udp uWebSockets/libuWS.a /usr/lib/libssl.so /usr/lib/libcrypto.so /usr/lib/libz.so there is no hint of

Re: [CMake] Can't get CMake to link pthreads to my lib

2017-08-08 Thread Jean-Michaël Celerier
I've tried this and also set(THREADS_PREFER_PTHREAD_FLAG TRUE) but this didn't work either. --- Jean-Michaël Celerier http://www.jcelerier.name On Tue, Aug 8, 2017 at 4:01 PM, Rolf Eike Beer wrote: > Am 2017-08-08 15:45, schrieb Jean-Michaël Celerier: > >> He

Re: [CMake] CMake equivalent to Boost.Build site-config.jam or user-config.jam

2017-08-09 Thread Jean-Michaël Celerier
rtain folder in release mode by default or stuff like this. --- Jean-Michaël Celerier http://www.jcelerier.name On Wed, Aug 9, 2017 at 12:20 PM, Cristian Adam wrote: > > > On Tue, Aug 8, 2017 at 8:08 PM, Brian Davis wrote: > >> >> Is there a CMake equivalent to a site-c

Re: [CMake] Interface Libraries allow include directories but not link directories.. Why?

2017-08-23 Thread Jean-Michaël Celerier
t_property(GROUP PluginGroup PROPERTIES /* whatever in cmake-properties*/) set_group(myTarget PluginGroup) // applies everything to the target Best, --- Jean-Michaël Celerier http://www.jcelerier.name On Wed, Aug 23, 2017 at 1:30 PM, Uwe Koloska wrote: > On 23.08.2017 11:44, Nichola

Re: [CMake] Interface Libraries allow include directories but not link directories.. Why?

2017-08-23 Thread Jean-Michaël Celerier
ary(blah INTERFACE) set_property(TARGET blah PROPERTY SUFFIX ".mxe") set_property(TARGET blah PROPERTY CXX_STANDARD 14) set_property(TARGET blah PROPERTY INSTALL_RPATH "@loader_path/whatever") --- Jean-Michaël Celerier http://www.jcelerier.name On Wed, Aug 23, 2017 at 11:23 P

Re: [CMake] Interface Libraries allow include directories but not link directories.. Why?

2017-08-24 Thread Jean-Michaël Celerier
more CMake does not do correctly. > > I am now climbing upon my "inherited build properties" soap box. It's > kinda slippery up here. > > On Wed, Aug 23, 2017 at 4:57 PM, Jean-Michaël Celerier < > jeanmichael.celer...@gmail.com> wrote: > >> >

Re: [CMake] [cmake-developers] Debugging find_package() search behavior?

2017-08-29 Thread Jean-Michaël Celerier
> The find modules use find_* commands, and those use CMAKE_PREFIX_PATH. Not always, some people sometimes feel like doing it by hand from scratch with if(EXISTS ...). Sadly. On Tue, Aug 29, 2017 at 5:49 PM, Brad King wrote: > On 08/29/2017 11:33 AM, David Cole wrote: > > That's correct: > >

Re: [CMake] Building cmake: why is openssl linked?

2018-01-13 Thread Jean-Michaël Celerier
https://cmake.org/cmake/help/latest/module/ExternalProject.html since CMake can download stuff, it needs to support https, hence SSL, hence OpenSSL Best, --- Jean-Michaël Celerier http://www.jcelerier.name On Sun, Jan 14, 2018 at 12:15 AM, Paul Smith wrote: > Hi all. > > I bu

Re: [CMake] Removing Transitively Inherited Properties

2018-02-06 Thread Jean-Michaël Celerier
For stuff like this one you could add -Wno-error afterwards to A's compile_options. --- Jean-Michaël Celerier http://www.jcelerier.name On Tue, Feb 6, 2018 at 11:15 AM, Geogin Varghese wrote: > What is the recommended way of removing transitively inherited > attributes f

Re: [CMake] -std=c++17 vs -std=c++1y

2018-05-06 Thread Jean-Michaël Celerier
Note that c++17 is c++1z. c++1y was C++14. --- Jean-Michaël Celerier http://www.jcelerier.name On Sun, May 6, 2018 at 5:00 PM, Andrew Brownsword < andrew.e.brownsw...@gmail.com> wrote: > Hi, > > Is there a way to get cmake 3.11 to emit 17 vs 1y when setting > CMAKE_

[CMake] Reason for deprecation of GenerateExportHeader ?

2018-06-08 Thread Jean-Michaël Celerier
erate_export _ header code to make specific symbols visible. Best, Jean-Michaël --- Jean-Michaël Celerier http://www.jcelerier.name -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to