diff options
author | Alex Reinking <reinking@google.com> | 2022-09-01 03:31:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 00:31:42 -0700 |
commit | 3054d61f703d609995798f872fc86b462617c294 (patch) | |
tree | 4e2fd7bda3df35a4a32606dc129b9d40d4e1a3f8 /src/circular-array.h | |
parent | 4741f38cf64b8b86a57a0ae9a117dc89fa6f2e24 (diff) | |
download | wabt-3054d61f703d609995798f872fc86b462617c294.tar.gz wabt-3054d61f703d609995798f872fc86b462617c294.tar.bz2 wabt-3054d61f703d609995798f872fc86b462617c294.zip |
Build fixes for FetchContent users (#1974)
* Rename WABT_MASTER_PROJECT to PROJECT_IS_TOP_LEVEL
When WABT eventually upgrades to CMake 3.21+, only the one line setting
PROJECT_IS_TOP_LEVEL will need to be deleted.
* Add WABT_INSTALL_RULES option
This option is enabled by default when WABT is the top-level project and
disabled by default when it is not. It is used (and should continue to
be used) to guard uses of the install() command.
This fixes an issue where FetchContent users were forced to install
parts of WABT. This most notably included the wasm-rt-impl library and
its associated headers.
* Remove redundant defaults from install rules
CMake 3.14 changed the behavior of the install() command to take its
defaults from the GNUInstallDirs module. Use this feature to remove dead
code from the build.
* Deleted top-level cmake/ folder
There was nothing in here besides a README that referred to a find
module that no longer exists in the repository. Removing to avoid
confusion.
* Add components to install() rules
By default, CMake assigns every install() rule to an "Unspecified"
component. By adding COMPONENT annotations, users become empowered to
install only the parts of WABT that they need. WABT now provides three
components:
1. wabt-runtime - the executables in WABT_EXECUTABLES
2. wabt-development - the wasm-rt static library and headers
3. wabt-documentation - the man pages, on UNIX only
Users can access this functionality using, e.g.:
cmake --install build --component wabt-development
When a user specifies no component, all are installed.
FetchContent users benefit as well. If they enable WABT's install rules,
they can build accurate packaging dependencies around these components.
Diffstat (limited to 'src/circular-array.h')
0 files changed, 0 insertions, 0 deletions