From d43eba417192feb54a3d6ebc0e18771e60da7888 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 9 Oct 2024 00:52:30 +0900 Subject: [PATCH] Another "if (TOYWASM)" to wrap target_link_directories Fixes https://github.com/aduros/wasm4/issues/768 --- runtimes/native/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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)