Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmake improvements #507

Merged
merged 7 commits into from
May 14, 2018
Merged

Conversation

denizevrenci
Copy link
Contributor

No description provided.

See google/benchmark#594.
The quick fix is to disable assembly tests so that the failing part does
not get included in the cmake configure step.
It is possible to add a subproject using add_subdirectory command of
CMake. In that particular case, CMAKE_(SOURCE|BINARY)_DIR points to the
top level project's directories while CMAKE_CURRENT_(SOURCE|BINARY)_DIR
points to Aeron's directories. Stand alone builds or adding Aeron as a
subproject using ExternalProject_Add does not get affected.
This makes all thirdparty related build artifacts go under the current
binary directory set by cmake with project name based hierarchy.
Unlike GNU make, ninja (https://ninja-build.org/) needs to know which
target produces the named output. Without marking the output libraries
as byproducts ninja does not know that it is a file that will be
created later on by one of the targets and assumes it missing.
This allows transitivity of the include directories for the libraries
defined by this project.
@tmontgomery
Copy link
Contributor

Very nice! Thanks!

@tmontgomery tmontgomery merged commit 172ce27 into aeron-io:master May 14, 2018
@denizevrenci denizevrenci deleted the cmake_improvements branch May 15, 2018 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants