Skip to content

(conan): update all package to allow sharing of C flags

Didier WECKMANN requested to merge common-c-flags into dev

What does this MR do?

The goal of this code is to share C flags across all our conan packages to ensure compatible code generation as some compiler settings can lead to strange bugs, hard to debug (especially floating point mode like -mfpmath=sse, please see the associated issue https://git.ircad.fr/Sight/sight/issues/188).

We choose to write the flags and compiler settings inside a python file packaged as a conan package (https://git.ircad.fr/conan/conan-common/tree/stable/1.0.0). For now, you will have acces to:

get_[c,cxx]_flags(), get_[c,cxx]_flags_[release,debug,relwithdebinfo](), get_cuda_version(), get_cuda_arch() and some utility functions for conanfile.py like fix_conan_path(conanfile, root, wildcard) which allows to fix path in .cmake files.

How to test it?

Compile everything, launch everything

Additional tests to run

(If you need some specific test e.g Windows compilation...)

  • Build on Windows
  • Build on macOS
  • Build on Linux

Associated Issues/Merge Requests

Edited by Didier WECKMANN

Merge request reports