[CMake] Having difficulty with find_library()
Michael Jackson
mike.jackson at bluequartz.net
Thu Jan 15 12:30:22 EST 2009
On Jan 15, 2009, at 12:13 PM, Robert Dailey wrote:
> On Thu, Jan 15, 2009 at 10:07 AM, Michael Jackson <mike.jackson at bluequartz.net
> > wrote:
> To look for the Compiler being used..
>
> IF (MSVC60)
> SET (...)
> ENDIF (MSVC60)
> IF (MSVC71)
> SET (....)
> ENDIF(MSVC71)
> IF (MSVC80)
> SET (....)
> ENDIF(MSVC80)
> IF (MSVC90)
> SET (.....)
> ENDIF (MSVC90)
>
> I also need to check if a 64 build is being made or a 32 bit build.
> How would you recommend checking for this?
I am not really sure about the ins-and-outs of Windows Dev but looking
through the Windows-cl.cmake file (Located in the CMake-2.6.2/share/
cmake-2.6/Modules directory) there are some variables that you might
be able to exploit.
CMAKE_CL_64
CMAKE_FORCE_WIN64
Not sure how these work if you are running a 32bit system and want to
build for Win64? They seem to be detecting the system you are building
on, not what you want to target.
HTH
---
Mike Jackson www.bluequartz.net
More information about the CMake
mailing list