From 54f0b61ef801f3241d5b758243149aa3ff2ffa8a Mon Sep 17 00:00:00 2001 From: Matias Romeo Date: Tue, 18 Jul 2017 13:55:37 -0300 Subject: [PATCH] Set INCLUDE_DIRECTORIES property for every WASM target. This allows the scanning of implicit dependencies of every contract source file to work properly (IMPLICIT_DEPENDS) --- CMakeModules/wasm.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeModules/wasm.cmake b/CMakeModules/wasm.cmake index 567d068030e..fd1fbeb3942 100644 --- a/CMakeModules/wasm.cmake +++ b/CMakeModules/wasm.cmake @@ -88,5 +88,7 @@ macro(add_wast_target target SOURCE_FILES INCLUDE_FOLDERS DESTINATION_FOLDER) ) add_custom_target(${target} ALL DEPENDS ${DESTINATION_FOLDER}/${target}.wast.hpp) + set_property(TARGET ${target} PROPERTY INCLUDE_DIRECTORIES ${INCLUDE_FOLDERS}) + endmacro(add_wast_target)