rbutil: Explicitly use C++17 and C11 for building (was "compiler default")

Change-Id: I9757a77520fc9d7d39a52185b92615d5eb9c0cbc
This commit is contained in:
Solomon Peachy 2026-06-22 09:41:47 -04:00
parent cf10fa5243
commit aeb42039f9
3 changed files with 4 additions and 1 deletions

View file

@ -42,7 +42,6 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_link_options($<$<CONFIG:RELEASE>:-s>) add_link_options($<$<CONFIG:RELEASE>:-s>)
endif() endif()
enable_testing() enable_testing()
# Qt # Qt

View file

@ -106,6 +106,8 @@ add_executable(RockboxUtility WIN32 MACOSX_BUNDLE
${CMAKE_CURRENT_BINARY_DIR}/rbutilqt-lang.qrc ${CMAKE_CURRENT_BINARY_DIR}/rbutilqt-lang.qrc
) )
target_compile_features(RockboxUtility PRIVATE cxx_std_17 c_std_11)
if(WIN32) if(WIN32)
target_sources(RockboxUtility PRIVATE target_sources(RockboxUtility PRIVATE
${CMAKE_CURRENT_LIST_DIR}/rbutilqt-win.qrc ${CMAKE_CURRENT_LIST_DIR}/rbutilqt-win.qrc

View file

@ -110,6 +110,8 @@ set_target_properties(RockboxThemeEditor PROPERTIES AUTOMOC ON)
set_target_properties(RockboxThemeEditor PROPERTIES AUTORCC ON) set_target_properties(RockboxThemeEditor PROPERTIES AUTORCC ON)
set_target_properties(RockboxThemeEditor PROPERTIES AUTOUIC ON) set_target_properties(RockboxThemeEditor PROPERTIES AUTOUIC ON)
target_compile_features(RockboxThemeEditor PRIVATE cxx_std_17 c_std_11)
target_link_libraries(RockboxThemeEditor target_link_libraries(RockboxThemeEditor
Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Core
skin_parser z ${QUAZIP_LIBRARY}) skin_parser z ${QUAZIP_LIBRARY})