Commit 5f24c33d authored by Baptiste Esteban's avatar Baptiste Esteban
Browse files

Restrict sanitizer script copy to UNIX system

parent 10d2b8bb
Pipeline #26623 failed with stages
in 22 minutes and 3 seconds
......@@ -11,8 +11,11 @@ target_include_directories(pylena_extension PRIVATE ${CONAN_INCLUDE_DIRS_PYBIND1
add_dependencies(build-tests pylena_extension)
# Copy a script to launch ASAN for python extensions
set(SANITIZE_SCRIPT "asan-pylena-test")
file(COPY ${SANITIZE_SCRIPT} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
set(SANITIZE_SCRIPT "")
if (UNIX AND NOT CYGWIN)
set(SANITIZE_SCRIPT "asan-pylena-test")
file(COPY ${SANITIZE_SCRIPT} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
endif()
function(add_python_test filename)
file(COPY ${filename} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment