toeb / cmakepp

An Enhancement Suite for the CMake Build System
Other
437 stars 37 forks source link

ls function fails #108

Open Manu343726 opened 9 years ago

Manu343726 commented 9 years ago

Hi Tobias.

I have a biicode user in our forum trying to write a block for Qt in the same way I wrote the Boost block: http://forum.biicode.com/t/cmake-crasheddddddddddddddddd

He's using the shell wrapper ls() utility, but cmake hangs completely. I have checked on my computer and the same occurs :(
For example, a simple LS("home/manu343726/"), this is the result:

$ bii configure
INFO: Processing changes...
Running: "cmake"  -G "Unix Makefiles" -Wno-dev  ../cmake

                BLOCK: qiangwu/qt 
----------------------------------------------------------- (hangs here for about 2 mins)
ERROR: CMake failed
toeb commented 9 years ago

ok. I'm checking it out right now. which version of cmakepp is it? the current block`?

toeb commented 9 years ago

I can't reproduce the error on linux or windows. I need some sort of output (cmake error message) else I do not even have a guess of whats going wrong because internally ls only uses cmake functions like file(GLOB) and get_filename_component its not a wrapper function as it does not use the shell program to obtain the files.

toeb commented 9 years ago

A quick fix for him would be to not use ls and just use file(GLOB dirs "G:/path/to/qt/*)

Manu343726 commented 9 years ago

The user is running latest version available on the bii block. Also, the only output is what I gave you above. Maybe is something wrong from the bii part, I will check in depth. Thanks for your support

toeb commented 9 years ago

There might be a problem because of the way that blocks are created. currently every successfull build of cmakepp on travis publishes a new block (with which I am not happy - I only want it to publish if I tag it... - but I have not yet addresses this issue...)

toeb commented 9 years ago

Did you get a chance to find the problem?

Manu343726 commented 9 years ago

nope.