rbutil: Explicitly use C++17 and C11 for building (was "compiler default")
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Mon, 22 Jun 2026 10:27:44 -0400
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit aeb42039f9bd783148c88ccaedd7f500636072f5 Author: Solomon Peachy <[email protected]> Date: Mon Jun 22 09:41:47 2026 -0400 rbutil: Explicitly use C++17 and C11 for building (was "compiler default") Change-Id: I9757a77520fc9d7d39a52185b92615d5eb9c0cbc diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index 575d5eb540..7ee5864e96 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -42,7 +42,6 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") add_link_options($<$<CONFIG:RELEASE>:-s>) endif() - enable_testing() # Qt diff --git a/utils/rbutilqt/CMakeLists.txt b/utils/rbutilqt/CMakeLists.txt index a160279189..80044328ca 100644 --- a/utils/rbutilqt/CMakeLists.txt +++ b/utils/rbutilqt/CMakeLists.txt @@ -106,6 +106,8 @@ add_executable(RockboxUtility WIN32 MACOSX_BUNDLE ${CMAKE_CURRENT_BINARY_DIR}/rbutilqt-lang.qrc ) +target_compile_features(RockboxUtility PRIVATE cxx_std_17 c_std_11) + if(WIN32) target_sources(RockboxUtility PRIVATE ${CMAKE_CURRENT_LIST_DIR}/rbutilqt-win.qrc diff --git a/utils/themeeditor/CMakeLists.txt b/utils/themeeditor/CMakeLists.txt index 42a3e19c1b..a6d6aa0fb1 100644 --- a/utils/themeeditor/CMakeLists.txt +++ b/utils/themeeditor/CMakeLists.txt @@ -110,6 +110,8 @@ set_target_properties(RockboxThemeEditor PROPERTIES AUTOMOC ON) set_target_properties(RockboxThemeEditor PROPERTIES AUTORCC ON) set_target_properties(RockboxThemeEditor PROPERTIES AUTOUIC ON) +target_compile_features(RockboxThemeEditor PRIVATE cxx_std_17 c_std_11) + target_link_libraries(RockboxThemeEditor Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Core skin_parser z ${QUAZIP_LIBRARY}) -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs