[CMake] Path qualifier dropped in VS71 generator

Brandon J. Van Every bvanevery at gmail.com
Sun May 21 08:27:48 EDT 2006


E:\devel\vs71\chicken\debug\silex.exe is built as a target dependency 
just fine.  However, when it comes time to execute it, the 
${Chicken_BINARY_DIR}/silex path qualifier is being dropped.  silex.exe 
is a generated tool that I need for successive stages of my build.

# Need to generate SILEX.EXE
# This is a key 1st step in the bootstrap.
ADD_CUSTOM_COMMAND(
  OUTPUT ${Chicken_BINARY_DIR}/easyffi.l.silex
  MAIN_DEPENDENCY ${Chicken_SOURCE_DIR}/easyffi.l
  # silex.exe is a proper target name.  Do I need to path-qualify it?
  DEPENDS ${Chicken_BINARY_DIR}/silex
  COMMAND ${Chicken_BINARY_DIR}/silex ${Chicken_SOURCE_DIR}/easyffi.l 
${Chicken_BINARY_DIR}/easyffi.l.silex
)

When generating for Visual Studio .NET 2003, I get:


Creating command line 
""e:\devel\vs71\chicken\chicken-static.dir\Debug\BAT000155.bat""
Creating temporary file 
"e:\devel\vs71\chicken\chicken-static.dir\Debug\BAT000156.bat" with contents
[
@echo off
silex E:/devel/src/chicken/easyffi.l E:/devel/vs71/chicken/easyffi.l.silex

if errorlevel 1 goto VCReportError
goto VCEnd
:VCReportError
echo Project : error PRJ0019: A tool returned an error code from 
"Generating easyffi.l.silex"
exit 1
:VCEnd
]

Generating easyffi.l.silex
'silex' is not recognized as an internal or external command,
operable program or batch file.
Project : error PRJ0019: A tool returned an error code from "Generating easyffi.l.silex"




More information about the CMake mailing list