Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tim-Philipp Müller
Opus
Commits
1d5c8152
Verified
Commit
1d5c8152
authored
Nov 20, 2020
by
Marcus Asteborg
Committed by
Ralph Giles
Nov 21, 2020
Browse files
cmake - add option for assertions
Signed-off-by:
Ralph Giles
<
giles@thaumas.net
>
parent
f040fb0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
1d5c8152
...
...
@@ -55,6 +55,10 @@ set(OPUS_FLOAT_APPROX_HELP_STR "enable floating point approximations (Ensure you
option
(
OPUS_FLOAT_APPROX
${
OPUS_FLOAT_APPROX_HELP_STR
}
OFF
)
add_feature_info
(
OPUS_FLOAT_APPROX OPUS_FLOAT_APPROX
${
OPUS_FLOAT_APPROX_HELP_STR
}
)
set
(
OPUS_ASSERTIONS_HELP_STR
"additional software error checking."
)
option
(
OPUS_ASSERTIONS
${
OPUS_ASSERTIONS_HELP_STR
}
OFF
)
add_feature_info
(
OPUS_ASSERTIONS OPUS_ASSERTIONS
${
OPUS_ASSERTIONS_HELP_STR
}
)
set
(
OPUS_INSTALL_PKG_CONFIG_MODULE_HELP_STR
"install pkg-config module."
)
option
(
OPUS_INSTALL_PKG_CONFIG_MODULE
${
OPUS_INSTALL_PKG_CONFIG_MODULE_HELP_STR
}
ON
)
add_feature_info
(
OPUS_INSTALL_PKG_CONFIG_MODULE OPUS_INSTALL_PKG_CONFIG_MODULE
${
OPUS_INSTALL_PKG_CONFIG_MODULE_HELP_STR
}
)
...
...
@@ -265,6 +269,10 @@ if(OPUS_FLOAT_APPROX)
target_compile_definitions
(
opus PRIVATE FLOAT_APPROX
)
endif
()
if
(
OPUS_ASSERTIONS
)
target_compile_definitions
(
opus PRIVATE ENABLE_ASSERTIONS
)
endif
()
if
(
OPUS_VAR_ARRAYS
)
target_compile_definitions
(
opus PRIVATE VAR_ARRAYS
)
elseif
(
OPUS_USE_ALLOCA
)
...
...
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