Re: [CMake] Visual Studio generator running custom_command twice

2019-03-15 Thread Paul Smith
On Thu, 2019-03-14 at 13:30 -0400, frodak17 wrote: > On Thu, Mar 14, 2019 at 12:53 PM frodak17 wrote: > > On Thu, Mar 14, 2019 at 1:13 AM Paul Smith > > wrote: > > > I have a situation where I've created a custom command to > > > generate .cpp > > > > > > files to be compiled (in my case running

Re: [CMake] Basic question how to find -lm include and lib dir with find_package or otherwise

2019-03-15 Thread Chuck Atkins via CMake
Usually you don't need to use the full path to libm, and it's only needed sometimes depending on your compiler and toolchain. I typically use something like the following to deal with both the implicit and explicit scenarios: include(CheckCSourceCompiles) set(LIBM_TEST_SOURCE "#include\nfloat f;

Re: [CMake] Question about find_packages.

2019-03-15 Thread Kyle Edwards via CMake
On Fri, 2019-03-15 at 17:03 +0100, workbe...@gmx.at wrote: > Hi everyone, > > i try to use find_packages for clang, i'm on debian and have > installed > libclang-4.0-dev package, now i've the files in > /usr/lib/llvm4-0/lib/libclang-4.0.so and the include in > /usr/lib/llvm-4.0/include/clang - how

Re: [CMake] Question about find_packages.

2019-03-15 Thread workbe...@gmx.at
I allways get the error: CMake Error at CMakeLists.txt:78 (find_package):   Could not find a package configuration file provided by "Clang" (requested   version 4.0) with any of the following names:     libclang-4.0.soConfig.cmake     libclang-4.0.so-config.cmake   Add the installation prefix of

[CMake] Question about find_packages.

2019-03-15 Thread workbe...@gmx.at
Hi everyone, i try to use find_packages for clang, i'm on debian and have installed libclang-4.0-dev package, now i've the files in /usr/lib/llvm4-0/lib/libclang-4.0.so and the include in /usr/lib/llvm-4.0/include/clang - how can i make find_package find those ?? best regards! pEpkey.asc Desc

Re: [CMake] XCode target membership

2019-03-15 Thread Brad King via CMake
On 3/15/19 1:28 AM, Roman Wüger wrote: > since Xcode 10 I noticed that I must check the Checkbox > (Target membership on the right pane) for my target when I want > that the assets are recognized for the specified target. > > Is there a way to automatically set this option via CMake? The problem >

Re: [CMake] Basic question how to find -lm include and lib dir with find_package or otherwise

2019-03-15 Thread frodak17
On Thu, Mar 14, 2019 at 8:53 PM workbe...@gmx.at wrote: > Hi everyone, > > i'm searching for a way to find the right include dir so that -lm can be > found, the is not find_package for this, is /usr/lib and /usr/include a > default because he find it without me adding any include or lib path for