NO-JIRA: Fix CMake to avoid new policy warning
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/c387e999 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/c387e999 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/c387e999 Branch: refs/heads/master Commit: c387e999f8204fb03f1a276a68596df50c1e0872 Parents: 13150e4 Author: Andrew Stitcher <[email protected]> Authored: Mon Feb 15 14:34:32 2016 -0500 Committer: Andrew Stitcher <[email protected]> Committed: Mon Feb 15 14:35:45 2016 -0500 ---------------------------------------------------------------------- proton-c/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/c387e999/proton-c/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/proton-c/CMakeLists.txt b/proton-c/CMakeLists.txt index c3f9294..4577bf0 100644 --- a/proton-c/CMakeLists.txt +++ b/proton-c/CMakeLists.txt @@ -203,9 +203,9 @@ endif (APPLE) set (OPTIONS WARNING_ERROR UNDEFINED_ERROR) foreach (OPTION ${OPTIONS}) - if (NOT "NOENABLE_${OPTION}") + if (NOT NOENABLE_${OPTION}) set ("DEFAULT_${OPTION}" ON) - endif (NOT "NOENABLE_${OPTION}") + endif () endforeach (OPTION) # And add the option here too with help text --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
