[Cmake] Why doesn't this give the expected output

John Biddiscombe john . biddiscombe at mirada-solutions . com
Fri, 21 Mar 2003 11:50:18 -0000


I'd like to use *.cpp files in my SET(sources...) command

(win32 implied here...)

STRING(REGEX REPLACE "/" "\\\\" THIS_DIR ${JavaR2_SOURCE_DIR}/myDir)
SET(DIRCOMMAND "dir")
EXEC_PROGRAM(${DIRCOMMAND} ARGS "/B ${THIS_DIR}\\*.cpp" OUTPUT_VARIABLE =
CPPFILES)
MESSAGE("${CPPFILES}")

I get a null string every time.

ideas?

thanks

JB