[Cmake] Why doesn't this give the expected output
Bill Hoffman
bill.hoffman at kitware.com
Fri Mar 21 08:18:23 EST 2003
Dir is not a command, it is a built in part of the shell.
So there is no dir.exe for cmake to run.
You may want to look at this command:
" AUX_SOURCE_DIRECTORY(dir VARIABLE)\n"
"Collects the names of all the source files in the specified "
"directory and stores the list in the variable provided.";
-Bill
At 06:50 AM 3/21/2003, John Biddiscombe wrote:
>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
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list