[CMake] Target not linking to Boost header libs compiled with ExternalProject_Add

2019-03-12 Thread Thiago Crepaldi
Hi all, I have created a small example app that links to Boost regex (works) and to a Boost header-only lib property_tree (fails). Using CMake 3.12.2 on a Ubuntu 18.10 x64, I get this error: [50%] Building CXX object CMakeFiles/dummy.dir/main.cpp.o small_superbuild/src/main.cpp:3:10: fatal error

Re: [CMake] Correct Boost version found, linked against wrong one

2019-03-12 Thread Andreas Naumann
Hey Florian, Am 12.03.19 um 13:53 schrieb Florian Lindner: Hello, I have a simple cmake file for a small project. That project uses boost and links again a shared lib that also uses boost: find_library(precice precice PATHS $ENV{PRECICE_ROOT}/build $ENV{PRECICE_ROOT}/build/last) find_packag

[CMake] BUG?: ExternalProject_add with CMAKE_COMMAND and Re-run cmake

2019-03-12 Thread Xavier Lacoste
Hello, I use External_project and set up a cmake subproject that uses au specific CMAKE_COMMAND (a wrapper that does export environment variables) This wrapper is correctly called on first configure but not if CMake decides to rerun CMake at build step. [ 45%] Performing build step for 'lap_pro

Re: [CMake] How can I automatically optionally build a submodule?

2019-03-12 Thread Simon Richter
Hi, On 12.03.19 06:37, Steve Keller wrote: > How can I build a module in a subdirectory automatically if a required > package is available, but not fail if it's not. Say I have a > top-level CMakeLists.txt with With my Debian Developer hat on: please also add a mechanism to manually specify whet

Re: [CMake] Why do we need NVIDIA Nsight Tegrato create Visual Studio Android Projects?

2019-03-12 Thread Daniel Wynne
We would like to use Xamarin for our x-platform app-development with VS. Is any support for that planned in the near future? Am 11.03.2019 um 15:30 schrieb Daniel Wynne: Hi All! Short question: why do we need NVIDIA Nsight Tegra to setup a Visual Studio Android project? Despite of it being a

[CMake] Correct Boost version found, linked against wrong one

2019-03-12 Thread Florian Lindner
Hello, I have a simple cmake file for a small project. That project uses boost and links again a shared lib that also uses boost: find_library(precice precice PATHS $ENV{PRECICE_ROOT}/build $ENV{PRECICE_ROOT}/build/last) find_package(Boost 1.60.0 REQUIRED COMPONENTS system program_options files

Re: [CMake] Invalid escape sequence in macro

2019-03-12 Thread Ramold, Felix
Thank you, Steph This might be related. I think the macro somehow resolves the escapes before executing the marco commands. Today I found out, this error is much worse in a project (instead of a script). Please see the updated code (now we escape correctly at declaration): function(f STRING)

Re: [CMake] How can I automatically optionally build a submodule?

2019-03-12 Thread Albrecht Schlosser
On 12.03.2019 06:37 Steve Keller wrote: How can I build a module in a subdirectory automatically if a required package is available, but not fail if it's not. Say I have a top-level CMakeLists.txt with add_subdirectory(foo) add_subdirectory(bar) and in directory foo I have in CMakeLis

Re: [CMake] further configuration of generated projects outside of CMake?

2019-03-12 Thread hex
Oh, I see now. The generator only adds the project files and the rest of the build output remains exactly the same with or without a generator. So I only use the generator once. Folders and libraries are not added in Eclipse GUI but rather in CMake project as you'd normally do. The project i