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

John Biddiscombe john.biddiscombe at mirada-solutions.com
Fri Mar 21 08:57:34 EST 2003


Aha. Thanks...

AUX_SOURCE_DIRECTORY(dir VARIABLE)

This gives a null result too, but using a batch file dir.bat and passing the params to that works fine.

thanks

JB



-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
Sent: 21 March 2003 13:18
To: John Biddiscombe; cmake at public.kitware.com
Subject: Re: [Cmake] Why doesn't this give the expected output


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