cmake 3.10

Issue #3 closed
Former user created an issue

If you build in linux with cmake 3.10 you need to set the cxx standard to 11 in CMakeLists.txt set(CMAKE_CXX_STANDARD 11)

Comments (5)

  1. Tobias Lorenz repo owner

    Using "set" does this on a global level. Actually the more modern way is to use "set_target_properties" and if you look in src/Vector/BLF/CMakeLists.txt, this is already done for the library.

    It's not done for the depending targets, such as the parser yet, because my assumption was that the C++11 setting is inherited automatically from the library. And this assumption seems to be true in my builds. So it might be that this is also clang-related, as you mentioned in issue #4.

  2. Tobias Lorenz repo owner
    • changed status to open

    I'll try this also with clang. But the main issue of setting CMAKE_CXX_STANDARD to 11 is already in src/Vector/BLF/CMakeLists.txt for the library.

  3. Log in to comment