-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Avoid using CMake 3.6 feature list(FILTER ...) #612
Conversation
src/CMakeLists.txt
Outdated
@@ -11,7 +11,7 @@ file(GLOB | |||
*.cc | |||
${PROJECT_SOURCE_DIR}/include/benchmark/*.h | |||
${CMAKE_CURRENT_SOURCE_DIR}/*.h) | |||
list(FILTER SOURCE_FILES EXCLUDE REGEX "benchmark_main\\.cc") | |||
list(REMOVE_ITEM SOURCE_FILES "benchmark_main.cc") |
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.
Does that actually work though?
GLOB
should result in absolute filenames..
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.
Right, fix coming
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.
list(FILTER ...) is a CMake 3.6 feature, but benchmark targets CMake 2.8.12
a3ad8d0
to
89f67d5
Compare
✅ Build benchmark 1276 completed (commit 3aaaa4bc9a by @Maratyszcza) |
✅ Build benchmark 1277 completed (commit 45c457ac62 by @Maratyszcza) |
thanks for the quick fix. |
list(FILTER ...) is a CMake 3.6 feature, but benchmark targets CMake 2.8.12
list(FILTER ...)
is a CMake 3.6 feature, but benchmark targets CMake 2.8.12