[CMake] Having difficulty with find_library()

Hendrik Sattler post at hendrik-sattler.de
Thu Jan 15 15:22:36 EST 2009


Am Thursday 15 January 2009 18:13:43 schrieb Robert Dailey:
> 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?

Check if CMAKE_SIZE_VOID_P is 8 (64bit) or 4 (32bit).

HS


More information about the CMake mailing list