diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-03-13 17:58:26 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-03-13 18:46:02 +0100 |
| commit | c18c39071a4dc0ace4fc5e23c61f3aa7ddd8c679 (patch) | |
| tree | 41c0ad66cdd7481888572af02a1d54d0f2890312 /CMake/fl_debug_var.cmake | |
| parent | 2d9cf4d83ec9824b978925fa6c9df8ace954d88b (diff) | |
CMake: improve setting C++ standard and configuration summary
CMake/fl_add_library.cmake: set target_compile_features(.. cxx_std_NN)
which is inherited by consumers of the library.
This prevents CMake user projects from failing if they would
otherwise compile with an older C++ standard.
CMake/fl_debug_var.cmake: add INTERFACE_COMPILE_FEATURES to fl_debug_target()
CMake/fl_summary.cmake: update summary format for longer variable names
CMakeLists.txt:
- check CMAKE_CXX_STANDARD given by the user (commandline)
and set C++ standard related CMake variables in the CMake cache.
The latter is experimental: setting in the cache may be reverted.
- add C++ standard related info to configure summary.
Diffstat (limited to 'CMake/fl_debug_var.cmake')
| -rw-r--r-- | CMake/fl_debug_var.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMake/fl_debug_var.cmake b/CMake/fl_debug_var.cmake index 1c33a9313..815e97dc1 100644 --- a/CMake/fl_debug_var.cmake +++ b/CMake/fl_debug_var.cmake @@ -123,6 +123,7 @@ function(fl_debug_target name) LINK_LIBRARIES COMPILE_DEFINITIONS INTERFACE_COMPILE_DEFINITIONS + INTERFACE_COMPILE_FEATURES INTERFACE_INCLUDE_DIRECTORIES INTERFACE_LINK_DIRECTORIES INTERFACE_LINK_LIBRARIES) |
