diff --git a/runtimes/native/CMakeLists.txt b/runtimes/native/CMakeLists.txt index 8f5b2284..cfcbf9ad 100644 --- a/runtimes/native/CMakeLists.txt +++ b/runtimes/native/CMakeLists.txt @@ -214,8 +214,10 @@ endif () target_include_directories(wasm4_libretro PRIVATE $<$:${CMAKE_SOURCE_DIR}/vendor/wasm3/source> $<$:${toywasm_tmp_install}/include>) +if (TOYWASM) # https://github.com/aduros/wasm4/issues/768 target_link_directories(wasm4_libretro PRIVATE $<$:${toywasm_tmp_install}/lib>) +endif () target_include_directories(wasm4_libretro PRIVATE "${CMAKE_SOURCE_DIR}/vendor/libretro/include") target_link_libraries(wasm4_libretro $<$:toywasm-core>) set_target_properties(wasm4_libretro PROPERTIES C_STANDARD 99)