Hygiene only when project is top-level
This commit is contained in:
parent
bb56ba5d47
commit
1089ab8441
2 changed files with 3 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
|||
like `__declspec(dllexport)`
|
||||
- Add target variants `CapnC::Runtime-Shared`, `CapnC::Runtime-Static` and
|
||||
`CapnC::Runtime-StaticExports`
|
||||
- Hygiene only runs when the project is top-level.
|
||||
|
||||
## 0.9.0
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static on
|
|||
# we try to enforce build hygiene.
|
||||
# You can override with either BUILD_HYGIENE=DISABLED or
|
||||
# BUILD_HYGIENE=ENABLED.
|
||||
if(NOT BUILD_HYGIENE STREQUAL DISABLED)
|
||||
# Hygiene is only done if the project is top-level.
|
||||
if(PROJECT_IS_TOP_LEVEL AND NOT BUILD_HYGIENE STREQUAL DISABLED)
|
||||
if(BUILD_HYGIENE STREQUAL ENABLED)
|
||||
set(find_program_args REQUIRED)
|
||||
else()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue