Skip to content

Commit

Permalink
chore: test fedora fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazer committed May 30, 2024
1 parent 2898ae8 commit 23df8b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmake/compile_definitions/linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,20 @@ if (${SUNSHINE_TRAY} EQUAL 0 AND SUNSHINE_REQUIRE_TRAY)
message(FATAL_ERROR "Tray icon is required")
endif()

# Function to enforce a specific C++ standard on all targets in a given subdirectory
function(enforce_cpp_standard target_dir cpp_standard)
set_property(DIRECTORY ${target_dir} PROPERTY CXX_STANDARD ${cpp_standard})
set_property(DIRECTORY ${target_dir} PROPERTY CXX_STANDARD_REQUIRED ON)
set_property(DIRECTORY ${target_dir} PROPERTY CXX_EXTENSIONS OFF)
endfunction()

if(${SUNSHINE_USE_LEGACY_INPUT})
list(APPEND PLATFORM_TARGET_FILES "${CMAKE_SOURCE_DIR}/src/platform/linux/input/legacy_input.cpp")
else()
add_subdirectory("${CMAKE_SOURCE_DIR}/third-party/inputtino/")
enforce_cpp_standard("${CMAKE_SOURCE_DIR}/third-party/inputtino/" 17)
list(APPEND SUNSHINE_EXTERNAL_LIBRARIES inputtino::libinputtino)

list(APPEND PLATFORM_TARGET_FILES
"${CMAKE_SOURCE_DIR}/src/platform/linux/input/inputtino_common.h"
"${CMAKE_SOURCE_DIR}/src/platform/linux/input/inputtino_gamepad.h"
Expand Down

0 comments on commit 23df8b9

Please sign in to comment.