-
Notifications
You must be signed in to change notification settings - Fork 28
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: Add a function to setup all build targets with the same strictness #98
Conversation
34f6b1a
to
4b39429
Compare
|
52c518e
to
f2e91ac
Compare
df24160
to
fbcb967
Compare
@@ -101,6 +101,47 @@ if (UPDATE_DEPS) | |||
include("${UPDATE_DEPS_DIR}/helper.cmake") | |||
endif() | |||
endif() | |||
|
|||
# Configure compiler build options common to all targets | |||
function(lunarg_target_compiler_configurations TARGET_NAME WERROR_OPTION) |
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.
What would be ideal is if we could actually share this code elegantly with the other repos that consume the utility libraries.
I think this can be done. I'll wait until this gets merged though.
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.
Yes that's what I was thinking!
049e33c
to
7bd23db
Compare
Question: Here I am using
add_compile_options
does it affect other target that would add this repository to it's project?Using
find_package
andadd_subdirctory
?I am using
add_compile_options
because this is was used for/WX
.