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
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
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"
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
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
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
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_
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 &
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 &