[CMake] Can't find crypt
Hendrik Sattler
post at hendrik-sattler.de
Sat Sep 13 13:01:53 EDT 2008
Am Saturday 13 September 2008 18:36:32 schrieb Razaj:
> __CMakeLists.txt snippet__
> # Check for crypt, if not found check for crypt in libcrypt
> CHECK_FUNCTION_EXISTS(crypt CRYPT_EXISTS)
> IF(NOT ${CRYPT_EXISTS})
> CHECK_LIBRARY_EXISTS(crypt crypt "" CRYPT_LIB_EXISTS)
> ENDIF(NOT ${CRYPT_EXISTS})
Does
CHECK_FUNCTION_EXISTS(crypt CRYPT_EXISTS)
IF(NOT CRYPT_EXISTS)
CHECK_LIBRARY_EXISTS(crypt crypt "" CRYPT_LIB_EXISTS)
ENDIF(NOT CRYPT_EXISTS)
work for you?
HS
More information about the CMake
mailing list