[Cmake] Why doesn't this give the expected output
John Biddiscombe
john.biddiscombe at mirada-solutions.com
Fri Mar 21 06:50:18 EST 2003
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
More information about the CMake
mailing list