Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-cmake-builder
Commits
cf2ffba5
Commit
cf2ffba5
authored
Apr 06, 2018
by
Ghislain MARY
Browse files
Define ENABLE_SANITIZER option everywhere Clang is used to build except on iOS and Android.
parent
d389b30b
Changes
2
Hide whitespace changes
Inline
Side-by-side
configs/config-desktop-common.cmake
View file @
cf2ffba5
...
...
@@ -24,9 +24,6 @@
lcb_add_option
(
"Theora"
"Theora video encoding/decoding support."
"
${
DEFAULT_VALUE_ENABLE_THEORA
}
"
)
lcb_add_option
(
"Static only"
"Enable compilation of libraries in static mode."
"
${
DEFAULT_VALUE_ENABLE_STATIC_ONLY
}
"
)
lcb_add_option
(
"Packaging"
"Enable packaging"
"
${
DEFAULT_VALUE_ENABLE_PACKAGING
}
"
)
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
lcb_add_option
(
"Sanitizer"
"Enable Clang sanitizer"
"
${
DEFAULT_VALUE_ENABLE_SANITIZER
}
"
)
endif
()
lcb_add_option
(
"Source packaging"
"Enable source packaging"
"
${
DEFAULT_VALUE_ENABLE_SOURCE_PACKAGING
}
"
)
...
...
options/common.cmake
View file @
cf2ffba5
...
...
@@ -28,3 +28,7 @@ lcb_add_option("Doc" "Enable documentation generation with Doxygen." YES)
lcb_add_option
(
"SOCI"
"Enable SOCI support."
"
${
DEFAULT_VALUE_ENABLE_SOCI
}
"
)
lcb_add_option
(
"Tools"
"Enable tools binary compilation."
"
${
DEFAULT_VALUE_ENABLE_TOOLS
}
"
)
lcb_add_option
(
"unmaintained"
"Allow inclusion of unmaintained code in the build."
OFF
)
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
AND NOT IOS AND NOT ANDROID
)
lcb_add_option
(
"Sanitizer"
"Enable Clang sanitizer"
"
${
DEFAULT_VALUE_ENABLE_SANITIZER
}
"
)
endif
()
Write
Preview
Markdown
is supported
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