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
Education
Marble
Commits
c169bb12
Commit
c169bb12
authored
Aug 05, 2020
by
Johnny Jazeix
Browse files
preload asan if we are compiling with ECM_ENABLE_SANITIZERS
parent
a07ed2ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
MarbleMacros.cmake
View file @
c169bb12
...
...
@@ -80,6 +80,10 @@ macro( marble_add_test TEST_NAME )
set_target_properties
(
${
TEST_NAME
}
PROPERTIES
COMPILE_FLAGS
"-DDATA_PATH=
\"\\\"
${
DATA_PATH
}
\\\"\"
-DPLUGIN_PATH=
\"\\\"
${
PLUGIN_PATH
}
\\\"\"
"
)
add_test
(
${
TEST_NAME
}
${
TEST_NAME
}
)
if
(
ECM_ENABLE_SANITIZERS
)
set_property
(
TEST
${
TEST_NAME
}
PROPERTY ENVIRONMENT
"LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.2.0.0"
)
endif
(
ECM_ENABLE_SANITIZERS
)
endif
(
BUILD_MARBLE_TESTS
)
endmacro
(
marble_add_test TEST_NAME
)
...
...
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