Thanks for your comment, I seem to have misunderstood the usage of
BUILD_SHARED_LIBS. I will remove the hack to serve either a static or
shared libprimesieve from my cmake config file.
On Feb 14, 2018 11:42 PM, "Hendrik Sattler" <p...@hendrik-sattler.de> wrote:
> Am 14. Februar 2018 21:47:24 MEZ schrieb Kim Walisch <
> >Thanks, I got it working!
> >Unfortunately I could not make the generator expression work inside
> >PrimesieveConfig.cmake.in, here is the error message:
> >CMake Error:
> > Error evaluating generator expression:
> > $<BUILD_SHARED_LIBS:libprimesieve>
> > Expression did not evaluate to a known generator expression
> >Note that in my main CMakeLists.txt the generator expression worked
> >fine. But I figured out I don't actually need the generator expression,
> >the following code inside my PrimesieveConfig.cmake.in does the trick:
> This is IMHO using the wrong variable! This variable tells that I want to
> build MY libs as static, not that I want to link 3rdParty libs statically!
> At least this is surprising behavior.
> OTOH and luckily, there are still the real targets to choose from.
> >This trick is also used by the c-ares library:
> Others also doing this wrong does not make it any better.
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
> Powered by www.kitware.com
> Please keep messages on-topic and check the CMake FAQ at:
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
> Visit other Kitware open-source projects at http://www.kitware.com/
> Follow this link to subscribe/unsubscribe:
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
Follow this link to subscribe/unsubscribe: