Re: [CMake] problem setting CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX

2008-01-31 Thread Yogesh Marwaha
On 29/01/2008, Brandon Van Every <[EMAIL PROTECTED]> wrote: > On Jan 29, 2008 10:42 AM, Yogesh Marwaha <[EMAIL PROTECTED]> wrote: > > Here is new CMakeLists.txt > > > > project (eSpy) > > cmake_minimum_required (VERSION 2.4.0) > > if(NOT CMAKE_BUILD_TYPE) > > set (CMAKE

Re: [CMake] Re: FindQt4 in 2.4.8 bug

2008-01-31 Thread Bill Hoffman
Fernando Cacciola wrote: Fernando Cacciola wrote: Hi, I've been using 2.4.7 until this morning when I saw the 2.4.8 announcement and jumped right away to install it (silly me). I have some script that finds Qt4 but stopped working on 2.4.8. Tracing the problem in FindQt4.cmake I found this.

Re: [CMake] Check directory exists

2008-01-31 Thread James Bigler
From the man page: IF(EXISTS file-name) IF(EXISTS directory-name) True if the named file or directory exists. Behavior is well-defined only for full paths. pepone.onrez wrote: There is any way for check if a directory exists usin

Re: [CMake] Check directory exists

2008-01-31 Thread pepone . onrez
Thanks for the tips On Jan 31, 2008 7:25 PM, David Cole <[EMAIL PROTECTED]> wrote: > >From the good old days before IS_DIRECTORY was invented, you can also use > a trailing "/" trick (hack?) with EXISTS to see if a directory exists and is > a directory... > > IF(EXISTS "${maybedir}/") > with a tr

Re: [CMake] Check directory exists

2008-01-31 Thread David Cole
>From the good old days before IS_DIRECTORY was invented, you can also use a trailing "/" trick (hack?) with EXISTS to see if a directory exists and is a directory... IF(EXISTS "${maybedir}/") with a trailing "/" will return false if ${maybedir} is a file that exists, but true if ${maybedir} is a

Re: [CMake] Check directory exists

2008-01-31 Thread James Bigler
Oh, that's a different question. You want this command, then (in the man page). IF(IS_DIRECTORY directory-name) True if the given name is a directory. Behavior is well- defined only for full paths. So you probably want something like this: IF(EXI

Re: [CMake] Check directory exists

2008-01-31 Thread pepone . onrez
Yes i read this but i want to test if is a directory no a directory or a file > > > > On Jan 31, 2008 7:04 PM, James Bigler <[EMAIL PROTECTED]> wrote: > > > From the man page: > > > > IF(EXISTS file-name) > > IF(EXISTS directory-name) > > > > True if

[CMake] Check directory exists

2008-01-31 Thread pepone . onrez
There is any way for check if a directory exists using CMake ? Thanks ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Excluding non local headers from dependency generation.

2008-01-31 Thread Josef Karthauser
Hey folks, I'm trying to speed up the cmake configuration - is there an easy way of excluding non local headers from the dependency calculations in cmake? Ideally it would be good to specify that a particular INCLUDE_DIRECTORIES entry should not be considered in the dependency checks. Is th

[CMake] Makefile colors and CDT generator

2008-01-31 Thread Jean Lepropre
Hi, When using the CDT generator how can I get colored output in the eclipse console? I checked that the CMAKE_COLOR_MAKEFILE option is ON but it didn't change anything. Thanks in advance. Cheers, Jean.___ CMake mailing list CMake@cmake.org http://www

Re: [CMake] Unexpected behavior testing boolean expressions

2008-01-31 Thread Brandon Van Every
On Jan 30, 2008 9:53 PM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > My guess is YES, etc., are being interpreted > as (undefined) variable names Yep, that's exactly what's happening. The macro expands to things like if(YES) and the variable YES has not been defined. A month or so ago I made a fe