Skip to content

Commit

Permalink
[cmake] make WASM_TOOLCHAIN mandatory (for a while)
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Feb 24, 2018
1 parent 22e8563 commit 6fcd58f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeModules/wasm.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
find_package(Wasm REQUIRED)
find_package(Wasm)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(WASM_TOOLCHAIN DEFAULT_MSG WASM_FOUND)

if (NOT WASM_TOOLCHAIN_FOUND)
return()
endif()

macro(compile_wast)
#read arguments include ones that we don't since arguments get forwared "as is" and we don't want to threat unknown argument names as values
cmake_parse_arguments(ARG "NOWARNINGS" "TARGET;DESTINATION_FOLDER" "SOURCE_FILES;INCLUDE_FOLDERS;SYSTEM_INCLUDE_FOLDERS;LIBRARIES" ${ARGN})
Expand Down

0 comments on commit 6fcd58f

Please sign in to comment.