Skip to content

Commit

Permalink
add SI_NO_CONVERSION on Linux (ConvertUTF8.h is not packaged at least…
Browse files Browse the repository at this point in the history
… on Debian, causing a build error)
  • Loading branch information
petitlapin committed Jan 22, 2024
1 parent e320527 commit 4d0bef7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ add_executable(${LIRI_EXECUTABLE_NAME} WIN32
configure_file(src/config.h.in "${CMAKE_CURRENT_BINARY_DIR}/config.h" @ONLY)
target_include_directories(${LIRI_EXECUTABLE_NAME} PUBLIC ${CMAKE_CURRENT_BINARY_DIR})

if(LINUX)
target_compile_definitions(${LIRI_EXECUTABLE_NAME} PUBLIC "-DSI_NO_CONVERSION=1")
endif()

if(USE_CONAN)
target_link_libraries(${LIRI_EXECUTABLE_NAME} PRIVATE SDL2::SDL2 SDL2_mixer::SDL2_mixer)
else()
Expand Down

0 comments on commit 4d0bef7

Please sign in to comment.