nixpkgs/pkgs/development/libraries/dnnl/bash-to-sh.patch

14 lines
622 B
Diff
Raw Normal View History

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index f6810246..e1d2a1f1 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -72,7 +72,7 @@ if(UNIX OR MINGW)
set(test_c_symbols "${CMAKE_CURRENT_BINARY_DIR}/test_c_symbols.c")
add_custom_command(
OUTPUT ${test_c_symbols}
- COMMAND /bin/bash ${CMAKE_CURRENT_SOURCE_DIR}/generate_c_symbols_refs.sh
+ COMMAND @bash@/bin/bash ${CMAKE_CURRENT_SOURCE_DIR}/generate_c_symbols_refs.sh
${CMAKE_CURRENT_SOURCE_DIR}/.. ${test_c_symbols} ${include_dirs}
)
register_exe(test_c_symbols-c ${test_c_symbols} "test")