Skip to content

Commit

Permalink
Avoid errors with an old cmake used on libretro CI
Browse files Browse the repository at this point in the history
Fixes #768
  • Loading branch information
yamt committed Oct 8, 2024
1 parent 35cfb6f commit cfc7113
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtimes/native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,14 @@ target_include_directories(wasm4 PRIVATE
$<$<BOOL:${GLFW}>:${CMAKE_SOURCE_DIR}/vendor/glad/include>
$<$<BOOL:${WASM3}>:${CMAKE_SOURCE_DIR}/vendor/wasm3/source>
$<$<BOOL:${TOYWASM}>:${toywasm_tmp_install}/include>)
# Note: as of writing this, libretro CI uses an ancient cmake, which
# doesn't have target_link_directories. the following target_link_directories
# is wrapped with an otherwise redundant "if (TOYWASM)" to avoid errors there.
# https://github.com/aduros/wasm4/issues/768
if (TOYWASM)
target_link_directories(wasm4 PRIVATE
$<$<BOOL:${TOYWASM}>:${toywasm_tmp_install}/lib>)
endif ()

target_link_libraries(wasm4 cubeb
$<$<BOOL:${MINIFB}>:minifb>
Expand Down

0 comments on commit cfc7113

Please sign in to comment.