By setting CMAKE_CXX_STANDARD, CMake will figure out the right flag to
pass to the compiler being used as well as error if the compiler doesn't
support that standard. The standard can also be changed on a per-target
basis.
Using add_compiler_options() is just a bit cleaner syntactically and
will apply the flags to C and C++.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
Debugging failing tests is awful when optimizations are turned on.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
Any explicit dependencies on a third_party library will cause that
target to get built. This commit only removes the targets from the
implicit "all" target.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
Some flag-related string parsing is also replaced with methods from
abseil.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
Building with CMake makes it a lot easier to bring in other libraries
such as gflags and abseil.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>