-
Notifications
You must be signed in to change notification settings - Fork 23
Fix perftests CMake target being empty: https://github.com/GridTools/gridtools/issues/1551 #1724
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
Conversation
Hi there, this is jenkins continuous integration... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor thing: let's put it in the current build dir, i.e. in /tests/regression.
tests/regression/CMakeLists.txt
Outdated
"${CMAKE_BINARY_DIR}/perftests_dummy.cpp" | ||
"// This file is needed in some cases because CMake targets must have at least one .cpp source." | ||
) | ||
target_sources(perftests PRIVATE "${CMAKE_BINARY_DIR}/perftests_dummy.cpp") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
target_sources(perftests PRIVATE "${CMAKE_BINARY_DIR}/perftests_dummy.cpp") | |
target_sources(perftests PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/perftests_dummy.cpp") |
Co-authored-by: Hannes Vogt <hannes@havogt.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Looks good (as good as CMake allows).
launch jenkins |
add to whitelist |
launch jenkins |
launch jenkins |
launch jenkins |
launch jenkins |
launch jenkins |
launch perftest |
Fixes #1551. You cannot make a CMake target with no sources and no linker input, so this adds a dummy source file to the perftests target for when there are no linker inputs either.