Re: [CMake] Detecting Mac OS X Version

2007-10-31 Thread Mike Jackson
Seans points are taken. Right now all I know is that if you are building on 10.5 then you need all this special linker crap due to the new linker in 10.5. I think I like the idea of parsing the "sw_vers" output better. Just need to implement it. -- Mike Jackson Senior Research Engineer In

Re: [CMake] Detecting Mac OS X Version

2007-10-31 Thread E. Wing
I'm wondering the same about this topic. I think Sean might be right about checking for the SDK target version instead of OS X version, though I could come up with a contrived example where knowing the actual OS X version could be important, such as a CMake bug/issue you need to work around that on

Re: [CMake] Detecting Mac OS X Version

2007-10-31 Thread Mike Jackson
On Oct 31, 2007, at 1:26 PM, James Bigler wrote: Sean McBride wrote: On 10/31/07 9:28 AM, Mike Jackson said: Would someone have an example of detecting the specific version of OS X that cmake is running on? I would like add values based on OS X version. IF (OS_X_VERSION matches "10.5"

Re: [CMake] Detecting Mac OS X Version

2007-10-31 Thread James Bigler
Sean McBride wrote: On 10/31/07 9:28 AM, Mike Jackson said: Would someone have an example of detecting the specific version of OS X that cmake is running on? I would like add values based on OS X version. IF (OS_X_VERSION matches "10.5") .. ENDIF (OS_X_VERSION matches "10.5") or som

Re: [CMake] Detecting Mac OS X Version

2007-10-31 Thread Sean McBride
On 10/31/07 9:28 AM, Mike Jackson said: >Would someone have an example of detecting the specific version of OS >X that cmake is running on? I would like add values based on OS X >version. > >IF (OS_X_VERSION matches "10.5") > .. >ENDIF (OS_X_VERSION matches "10.5") > >or something to that ef

Re: [CMake] Detecting Mac OS X Version

2007-10-31 Thread Benjamin Reed
On 10/31/07, James Bigler <[EMAIL PROTECTED]> wrote: > # -- Determine the version of OSX > # -- 8 and less are OSX 10.0 - 10.4 > # -- 9 is 10.5 (LEOPARD) > IF (APPLE) >EXEC_PROGRAM(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION) you can also parse the output of /usr/bin/sw_vers, which will giv

Re: [CMake] Detecting Mac OS X Version

2007-10-31 Thread James Bigler
This is what one of our developers did: # -- Determine the version of OSX # -- 8 and less are OSX 10.0 - 10.4 # -- 9 is 10.5 (LEOPARD) IF (APPLE) EXEC_PROGRAM(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION) STRING(REGEX MATCH "[0-9]+" DARWIN_VERSION ${DARWIN_VERSION}) MESSAGE(STATUS "DARWIN_

[CMake] Detecting Mac OS X Version

2007-10-31 Thread Mike Jackson
Would someone have an example of detecting the specific version of OS X that cmake is running on? I would like add values based on OS X version. IF (OS_X_VERSION matches "10.5") .. ENDIF (OS_X_VERSION matches "10.5") or something to that effect.. Thanks -- Mike Jackson imikejackson &

[CMake] Detecting Mac OS X Version

2007-10-31 Thread Mike Jackson
Would someone have an example of detecting the specific version of OS X that cmake is running on? I would like add values based on OS X version. IF (OS_X_VERSION matches "10.5") .. ENDIF (OS_X_VERSION matches "10.5") or something to that effect.. Thanks -- Mike Jackson imikejackson &