[CMake] FILE(GLOB) don't work with directories

Philippe Poilbarbe Philippe.Poilbarbe at cls.fr
Fri Jun 16 11:52:22 EDT 2006


Hello,

I did try to do a module to find the InstallBuilder program.
For unices, no problem but on MS-Windows this program
installs itself in a directory containing the version so I did
something like this:

FILE(GLOB    WIN32_IB_DIRS
        "C:/Program files/Bitrock*"
        "C:/Program files/Bitrock/*"
        "C:/Bitrock*"
        "C:/Bitrock/*")

WIN32_IB_DIRS is always empty even if a directory correspond.
Is it a bug or a feature (cmake 2.2 & 2.4) ?

At now I have done a workaround (with a 1 line perl script).

Cheers,
Philippe Poilbarbe



More information about the CMake mailing list