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

Bill Hoffman bill.hoffman at kitware.com
Fri Mar 21 09:27:18 EST 2003


What version of cmake are you using?   I think AUX_SOURCE_DIRECTORY should
work for .cpp files in 1.6.6.   

-Bill


At 08:57 AM 3/21/2003, John Biddiscombe wrote:
>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 
>
>
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 






More information about the CMake mailing list