Re: [CMake] including paths - basic

2007-10-21 Thread Philip Lowman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark Wyszomierski wrote: Hi Mike, When I try CMAKE_BUILD_TYPE MATCHES Debug, it seems to never execute the contents of that IF statement (as if I am never CMake'ing a DEBUG build?). I don't know if CMAKE_BUILD_TYPE is the same thing as what's

Re: [CMake] including paths - basic

2007-10-21 Thread Mark Wyszomierski
Thanks for the detailed answer Philip. I was able to get around this for my case by the feature included with target_libraries(debug | optimized) - luckily that's exactly what I needed. I understand what you're saying, maybe I can add an entry to the cmake wikipedia about it, Thanks, Mark On

Re: [CMake] including paths - basic

2007-10-20 Thread Mark Wyszomierski
Hi Mike, When I try CMAKE_BUILD_TYPE MATCHES Debug, it seems to never execute the contents of that IF statement (as if I am never CMake'ing a DEBUG build?). I don't know if CMAKE_BUILD_TYPE is the same thing as what's in the CMAKE_CONFIGURATION_TYPES field. I really need something like: IF

Re: [CMake] including paths - basic

2007-10-19 Thread Mike Jackson
IF ( CMAKE_BUILD_TYPE MATCHES Debug ) ADD_DEFINITIONS(-DDEBUG) ADD_DEFINITIONS(-Wall) ENDIF ( CMAKE_BUILD_TYPE MATCHES Debug ) -- Mike Jackson Senior Research Engineer Innovative Management Technology Services On Oct 19, 2007, at 9:34 AM, Mark Wyszomierski wrote: It works fine

Re: [CMake] including paths - basic

2007-10-19 Thread a . neundorf-work
On Thursday 18 October 2007 19:32, Mark Wyszomierski wrote: Hi, I'm new to cmake, it looks great. Is it possible to include different paths conditionally, like: include_directories (${MY_PROJECT_SOURCE_DIR}/my_lib) IF (WIN32) include_directories (C:/my_stuff/lib/something) ELSE (WIN32)

[CMake] including paths - basic

2007-10-18 Thread Mark Wyszomierski
Hi, I'm new to cmake, it looks great. Is it possible to include different paths conditionally, like: include_directories (${MY_PROJECT_SOURCE_DIR}/my_lib) IF (WIN32) include_directories (C:/my_stuff/lib/something) ELSE (WIN32) include_directories (/usr/lib/something) ENDIF (WIN32) Can you keep