Skip to content

Commit

Permalink
Another "if (TOYWASM)" to wrap target_link_directories
Browse files Browse the repository at this point in the history
Fixes #768
  • Loading branch information
yamt committed Oct 8, 2024
1 parent cfc7113 commit d43eba4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtimes/native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,10 @@ endif ()
target_include_directories(wasm4_libretro PRIVATE
$<$<BOOL:${WASM3}>:${CMAKE_SOURCE_DIR}/vendor/wasm3/source>
$<$<BOOL:${TOYWASM}>:${toywasm_tmp_install}/include>)
if (TOYWASM) # https://github.com/aduros/wasm4/issues/768
target_link_directories(wasm4_libretro PRIVATE
$<$<BOOL:${TOYWASM}>:${toywasm_tmp_install}/lib>)
endif ()
target_include_directories(wasm4_libretro PRIVATE "${CMAKE_SOURCE_DIR}/vendor/libretro/include")
target_link_libraries(wasm4_libretro $<$<BOOL:${TOYWASM}>:toywasm-core>)
set_target_properties(wasm4_libretro PROPERTIES C_STANDARD 99)
Expand Down

0 comments on commit d43eba4

Please sign in to comment.