message: bugfix for add_wast_executable DEPENDS
diff: @@ -133,7 +133,8 @@ macro(add_wast_library)
  compile_wast(TARGET ${ARG_TARGET} SOURCE_FILES ${ARG_SOURCE_FILES} INCLUDE_FOLDERS ${ARG_INCLUDE_FOLDERS})
  add_custom_target(${target} ALL DEPENDS ${ARG_TARGET}.bc)
  - set("${ARG_TARGET}_BC_FILENAME" ${CMAKE_CURRENT_SOURCE_DIR}/${ARG_TARGET}.bc CACHE INTERNAL "${target} .bc file")
  + get_filename_component("${ARG_TARGET}_BC_FILENAME" "${CMAKE_CURRENT_SOURCE_DIR}/${ARG_TARGET}.bc" ABSOLUTE CACHE)
  + #set("${ARG_TARGET}_BC_FILENAME" CACHE INTERNAL "${target} .bc file")
  add_custom_command(OUTPUT ${target}.bc
  DEPENDS ${outfiles}
  @@ -155,7 +156,7 @@ macro(add_wast_executable)
  foreach(lib ${ARG_LIBRARIES})
  list(APPEND LIBRARIES ${${lib}_BC_FILENAME})
  endforeach()
  -
  +message("${target} DEPENDS ${outfiles} ${ARG_LIBRARIES} ${LIBRARIES}")
  add_custom_command(OUTPUT ${target}.bc
  DEPENDS ${outfiles} "${ARG_LIBRARIES}" ${LIBRARIES}
  COMMAND ${WASM_LLVM_LINK} -only-needed -o ${target}.bc ${outfiles} ${LIBRARIES} ${ARG_EXTERNAL_LIBRARIES} ${LIBRARIES}
  