visual c++ - using custom build event in VS 2010 -
i in process of creating visual studio solution wrap command-line portions of ocaml. in standard ocaml make file there following target:
version.h : ../version echo "#define ocaml_version \"`sed -e 1q ../version`\"" > version.h
which hoping simulate via custom build event. have modified vcproj file include following lines:
<custombuildstep> <command>c:\windows\system32\sed.exe -e "1 s/^/#define ocaml_version " "$(sourcedir)version" > "$(sourcedir)version.h" </command> <inputs>version</inputs> <outputs>version.h;%(outputs)</outputs> <message>building version header file ....</message> </custombuildstep>
i have sed installed on system (from unxutils), , command work correctly command terminal (after macro-expansion naturally). however, when execute inside visual studio following error message:
custombuildstep: description: building version header file .... 'c:\windows\system32\sed.exe' not recognized internal or external command, operable program or batch file.
i've seen problem on several forums , proposed solution include absolute path (which did) or set working directory executable lives. there work?
Comments
Post a Comment