Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
9120840b
Commit
9120840b
authored
Apr 14, 2016
by
Rashad Kanavath
Browse files
SuperBuild: set default when creating option to avoid override
parent
549ff6df
Changes
1
Hide whitespace changes
Inline
Side-by-side
SuperBuild/CMake/SuperBuild_Macro.cmake
View file @
9120840b
...
...
@@ -4,11 +4,10 @@ include(CMakeParseArguments)
# internal variables
macro
(
SETUP_SYSTEM_LIBRARY
)
cmake_parse_arguments
(
NEW_SYSLIB
""
"PROJECT;DEFAULT"
""
${
ARGN
}
)
option
(
USE_SYSTEM_
${
NEW_SYSLIB_PROJECT
}
"Use a system build of
${
NEW_SYSLIB_PROJECT
}
."
)
set
(
USE_SYSTEM_
${
NEW_SYSLIB_PROJECT
}
OFF
)
if
(
NEW_SYSLIB_DEFAULT
)
set
(
USE_SYSTEM_
${
NEW_SYSLIB_PROJECT
}
ON
)
endif
()
option
(
USE_SYSTEM_
${
NEW_SYSLIB_PROJECT
}
" Use a system build of
${
NEW_SYSLIB_PROJECT
}
."
${
NEW_SYSLIB_DEFAULT
}
)
set
(
SYSTEM_
${
NEW_SYSLIB_PROJECT
}
_CMAKE_CACHE
)
endmacro
(
SETUP_SYSTEM_LIBRARY
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment