[CMake] configure_file - false vs 0

2009-08-09 Thread James C. Sutherland
In my configure.h.in file I have: #cmakedefine TEST_VAR_VALUE In my CMakeLists.txt file I have: configure_file( ${PROJECT_SOURCE_DIR}/src/config.h.in $ {PROJECT_SOURCE_DIR}/src/configure.h ) set( TEST_VAR_VALUE 0 ) This results in a configure.h file containing: /* #undef

Re: [CMake] configure_file - false vs 0

2009-08-09 Thread Michael Wild
On 9. Aug, 2009, at 18:06, James C. Sutherland wrote: In my configure.h.in file I have: #cmakedefine TEST_VAR_VALUE In my CMakeLists.txt file I have: configure_file( ${PROJECT_SOURCE_DIR}/src/config.h.in $ {PROJECT_SOURCE_DIR}/src/configure.h ) set( TEST_VAR_VALUE 0 ) This results

Re: [CMake] configure_file - false vs 0

2009-08-09 Thread James C. Sutherland
On Aug 9, 2009, at 10:20 AM, Michael Wild wrote: On 9. Aug, 2009, at 18:06, James C. Sutherland wrote: In my configure.h.in file I have: #cmakedefine TEST_VAR_VALUE In my CMakeLists.txt file I have: configure_file( ${PROJECT_SOURCE_DIR}/src/config.h.in $

Re: [CMake] Linking against OS X Frameworks

2009-08-09 Thread ML
Michael, Thank you for this example! It was really informative. Definitely a missing piece in my knowledge thus far. One question: I get an error stating: CMake Error at CMakeLists.txt:70 (message): MoreFilesX requires the SDK version to be not newer than 10.4u (10.6 detected) this

Re: [CMake] configure_file - false vs 0

2009-08-09 Thread James C. Sutherland
On Aug 9, 2009, at 10:33 AM, James C. Sutherland wrote: On Aug 9, 2009, at 10:20 AM, Michael Wild wrote: On 9. Aug, 2009, at 18:06, James C. Sutherland wrote: In my configure.h.in file I have: #cmakedefine TEST_VAR_VALUE In my CMakeLists.txt file I have: configure_file(

Re: [CMake] configure_file - false vs 0

2009-08-09 Thread Michael Wild
On 9. Aug, 2009, at 18:39, James C. Sutherland wrote: On Aug 9, 2009, at 10:33 AM, James C. Sutherland wrote: On Aug 9, 2009, at 10:20 AM, Michael Wild wrote: On 9. Aug, 2009, at 18:06, James C. Sutherland wrote: In my configure.h.in file I have: #cmakedefine TEST_VAR_VALUE In my

Re: [CMake] Linking against OS X Frameworks

2009-08-09 Thread Michael Wild
On 9. Aug, 2009, at 18:59, ML wrote: Michael, Thank you for this example! It was really informative. Definitely a missing piece in my knowledge thus far. One question: I get an error stating: CMake Error at CMakeLists.txt:70 (message): MoreFilesX requires the SDK version to be not

[CMake] out of source command line flag

2009-08-09 Thread Roman Shtylman
I have been meaning to try and create such a patch for a while. The idea behind the patch is that you can specify the location of the out of source build directory on the command line. By itself, this really isn't all that useful save having to type mkdir 'some dir', cd 'some dir', and 'cmake ..'

Re: [CMake] configure_file - false vs 0

2009-08-09 Thread James C. Sutherland
In my configure.h.in file I have: #cmakedefine TEST_VAR_VALUE In my CMakeLists.txt file I have: configure_file( ${PROJECT_SOURCE_DIR}/src/config.h.in $ {PROJECT_SOURCE_DIR}/src/configure.h ) set( TEST_VAR_VALUE 0 ) This results in a configure.h file containing: /* #undef TEST_VAR_VALUE */

Re: [CMake] configure_file - false vs 0

2009-08-09 Thread Bill Hoffman
James C. Sutherland wrote: #define TEST_VAR_VALUE ${TEST_VAR_VALUE} is what you want. But if I do set( TEST_VAR_VALUE 0 ) then this results in TEST_VAR_VALUE being undefined rather than having the value of 0 as I want. If the value is anything other than zero it works. This is what I

Re: [CMake] Linking against OS X Frameworks

2009-08-09 Thread Mike Jackson
On Sun, Aug 9, 2009 at 3:07 PM, Michael Wildthem...@gmail.com wrote: On 9. Aug, 2009, at 18:59, ML wrote: Michael, Thank you for this example! It was really informative. Definitely a missing piece in my knowledge thus far. One question: I get an error stating: CMake Error at

Re: [CMake] configure_file - false vs 0

2009-08-09 Thread Michael Wild
On 9. Aug, 2009, at 22:49, James C. Sutherland wrote: In my configure.h.in file I have: #cmakedefine TEST_VAR_VALUE In my CMakeLists.txt file I have: configure_file( ${PROJECT_SOURCE_DIR}/src/config.h.in $ {PROJECT_SOURCE_DIR}/src/configure.h ) set( TEST_VAR_VALUE 0 ) This results in a

Re: [CMake] configure_file - false vs 0

2009-08-09 Thread Mike Jackson
On Sun, Aug 9, 2009 at 5:07 PM, Bill Hoffmanbill.hoff...@kitware.com wrote: James C. Sutherland wrote: #define TEST_VAR_VALUE ${TEST_VAR_VALUE} is what you want. But if I do  set( TEST_VAR_VALUE 0 ) then this results in TEST_VAR_VALUE being undefined rather than having the value of 0 as

Re: [CMake] Linking against OS X Frameworks

2009-08-09 Thread Michael Wild
On 9. Aug, 2009, at 23:09, Mike Jackson wrote: On Sun, Aug 9, 2009 at 3:07 PM, Michael Wildthem...@gmail.com wrote: On 9. Aug, 2009, at 18:59, ML wrote: Michael, Thank you for this example! It was really informative. Definitely a missing piece in my knowledge thus far. One question: I

Re: [CMake] configure_file - false vs 0

2009-08-09 Thread James C. Sutherland
Aah, now I see what you want... #define TEST_VAR_VALUE ${TEST_VAR_VALUE} is what you want. But if I do set( TEST_VAR_VALUE 0 ) then this results in TEST_VAR_VALUE being undefined rather than having the value of 0 as I want. If the value is anything other than zero it works. This is

Re: [CMake] Linking against OS X Frameworks

2009-08-09 Thread ML
Hi Guys, With all of your help and reading intensely though the documentation to understand each command. I am starting to really get this. I am doing great now. What is the command to force 32-bit carbon as now that I set 10.4 as my SDK and I am running on a 64 -bit machine I am getting

Re: [CMake] Linking against OS X Frameworks

2009-08-09 Thread Michael Wild
On 10. Aug, 2009, at 1:27, ML wrote: Hi Guys, With all of your help and reading intensely though the documentation to understand each command. I am starting to really get this. I am doing great now. What is the command to force 32-bit carbon as now that I set 10.4 as my SDK and I am