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)

[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