Re: [CMake] Complaint about if..endif

2008-11-22 Thread Jack Andrews
hi rob, > Why must endif() contain the same expression as the associated if() command? i think this could be the most noticed feature of cmake (in the five minute test). as noted, in other posts, you don't have to any more. but i've been thinking of creating another, less verbose, front end for

[CMake] intercepting CMakeLists.txt read

2008-11-13 Thread Jack Andrews
hi guys, i want to generate the CMakeLists.txt just-in-time before cmake reads it (in each descending directory). where would be a good place to put in a callback? or maybe cmake can read an environment variable (say, CMAKERUN) and if set, call $CMAKERUN with the path to the current directory e

[CMake] binary directory?

2008-10-27 Thread Jack Andrews
i'm getting this error: >cmake -G "Visual Studio 8 2005" CMake Error: Error in cmake code at C:/cygwin/home/jack/play/d/CMakeLists.txt:1: ADD_SUBDIRECTORY not given a binary directory but the given source directory "C:/cygwin/home /jack/play/bdwgc" is not a subdirectory of "C:/cygwin/home/jack/pla

[CMake] newbie - VC++ external link dependency

2008-07-15 Thread Jack Andrews
hi guys, i've got a small library (portlib) that does things including sockets on linux and windows. my problem is that many executables depend on this library and it seems that for every executable i also have to add IF(WIN32) LINK_LIBRARIES(wsock32 ws2_32 portlib) ENDIF(WIN32) that is, on top