mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
rbutil: Use add_compile_definitions instead of add_compile_options
Change-Id: Iaeca86f89ccfb961456a10b96f3257d444cc0971
This commit is contained in:
parent
44713c3014
commit
a700dcdfb0
3 changed files with 5 additions and 3 deletions
|
|
@ -59,7 +59,7 @@ else()
|
|||
message("-- QT::Multimedia not found, TTS preview not available")
|
||||
endif()
|
||||
|
||||
add_compile_options(-DQT_NO_USE_NODISCARD_FILE_OPEN)
|
||||
add_compile_definitions(QT_NO_USE_NODISCARD_FILE_OPEN)
|
||||
|
||||
# If we're on Linux, try to find the used libs in the system.
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
# KIND, either express or implied.
|
||||
#
|
||||
|
||||
add_compile_definitions(QT_NO_USE_NODISCARD_FILE_OPEN)
|
||||
|
||||
set(RBUTIL_TS_FILES
|
||||
${CMAKE_CURRENT_LIST_DIR}/lang/rbutil_cs.ts
|
||||
${CMAKE_CURRENT_LIST_DIR}/lang/rbutil_de.ts
|
||||
|
|
@ -103,7 +105,6 @@ add_executable(RockboxUtility WIN32 MACOSX_BUNDLE
|
|||
)
|
||||
|
||||
target_compile_features(RockboxUtility PRIVATE cxx_std_17 c_std_11)
|
||||
target_compile_options(RockboxUtility PRIVATE -DQT_NO_USE_NODISCARD_FILE_OPEN)
|
||||
|
||||
if(WIN32)
|
||||
target_sources(RockboxUtility PRIVATE
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
# KIND, either express or implied.
|
||||
#
|
||||
|
||||
add_compile_definitions(QT_NO_USE_NODISCARD_FILE_OPEN)
|
||||
|
||||
add_executable(RockboxThemeEditor WIN32 MACOSX_BUNDLE
|
||||
graphics/rbalbumart.cpp
|
||||
graphics/rbalbumart.h
|
||||
|
|
@ -111,7 +113,6 @@ 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_compile_options(RockboxThemeEditor PRIVATE -DQT_NO_USE_NODISCARD_FILE_OPEN)
|
||||
|
||||
target_link_libraries(RockboxThemeEditor
|
||||
Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Core
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue