Skip to content

Commit

Permalink
Use /bin/sh
Browse files Browse the repository at this point in the history
Remove Linuxism. 

Works fine with a POSIX-compat shell
  • Loading branch information
Sp1l authored and vuvova committed Mar 21, 2016
1 parent e69c6e8 commit ee68777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/tokudb/PerconaFT/buildheader/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
set_directory_properties(PROPERTIES INCLUDE_DIRECTORIES "")

file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/runcat.sh" "#!/bin/bash
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/runcat.sh" "#!/bin/sh
out=$1; shift
exec \"$@\" >$out")

add_executable(make_tdb make_tdb.cc)
set_property(TARGET make_tdb APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE)
add_custom_command(
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/db.h"
COMMAND bash runcat.sh "${CMAKE_CURRENT_BINARY_DIR}/db.h" $<TARGET_FILE:make_tdb>
COMMAND sh runcat.sh "${CMAKE_CURRENT_BINARY_DIR}/db.h" $<TARGET_FILE:make_tdb>
DEPENDS make_tdb)
add_custom_target(install_tdb_h DEPENDS
"${CMAKE_CURRENT_BINARY_DIR}/db.h")
Expand Down

0 comments on commit ee68777

Please sign in to comment.