diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2021-09-07 18:49:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 18:49:50 -0700 |
commit | e7de93e58f2c5cfdfc136285b29d84b1f8a559cb (patch) | |
tree | 8073bee12b299d4f3ffa4a33680c75a283b1d3b9 | |
parent | 7a17e2dec31d512163e048d36d59fdb6e31314c6 (diff) | |
download | binaryen-e7de93e58f2c5cfdfc136285b29d84b1f8a559cb.tar.gz binaryen-e7de93e58f2c5cfdfc136285b29d84b1f8a559cb.tar.bz2 binaryen-e7de93e58f2c5cfdfc136285b29d84b1f8a559cb.zip |
Enumerate objects for wasm-split-lib (#4128)
To support CMake 3.10. `add_executable` does not support OBJECT libraries until 3.12.
-rw-r--r-- | src/tools/wasm-split/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wasm-split/CMakeLists.txt b/src/tools/wasm-split/CMakeLists.txt index 4f4e7d832..c6b5a2e7d 100644 --- a/src/tools/wasm-split/CMakeLists.txt +++ b/src/tools/wasm-split/CMakeLists.txt @@ -6,5 +6,5 @@ set(wasm_split_SOURCES ) add_library(wasm-split-lib OBJECT ${wasm_split_SOURCES}) -binaryen_add_executable(wasm-split wasm-split.cpp) +binaryen_add_executable(wasm-split wasm-split.cpp $<TARGET_OBJECTS:wasm-split-lib>) target_link_libraries(wasm-split wasm-split-lib) |