Sha256: 60efc4999302a327ca453b0c391f58930dcea670e7c5c11d7c5b659272249d46

Contents?: true

Size: 971 Bytes

Versions: 6

Compression:

Stored size: 971 Bytes

Contents

INCLUDE (CheckCSourceCompiles)
INCLUDE_DIRECTORIES(src)
FILE(GLOB CBSASL_SRC src/*.c)
FILE(GLOB CRAM_SRC src/cram-md5/*.c)
FILE(GLOB SCRAM_SRC src/scram-sha/*.c)

ADD_LIBRARY(cbsasl-lcb OBJECT ${CBSASL_SRC} ${CRAM_SRC} ${SCRAM_SRC})
SET_TARGET_PROPERTIES(cbsasl-lcb
    PROPERTIES
    POSITION_INDEPENDENT_CODE TRUE
    COMPILE_FLAGS "${LCB_CORE_CFLAGS}")

IF(OPENSSL_FOUND AND (NOT LCB_NO_SSL))
    INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIR})
    ADD_DEFINITIONS(${OPENSSL_DEFINITIONS})
    # Check if the system have a usable version of PKCS5_PBKDF2_HMAC
    CMAKE_PUSH_CHECK_STATE(RESET)
    SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${OPENSSL_LIBRARIES})
    SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${OPENSSL_INCLUDE_DIR})
    CHECK_C_SOURCE_COMPILES("
             #include <openssl/evp.h>
             int main() {
                 PKCS5_PBKDF2_HMAC(NULL, 0, NULL, 0, 0, NULL, 0, NULL);
             }" HAVE_PKCS5_PBKDF2_HMAC)
ENDIF()

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
mt-libcouchbase-1.4.03 ext/libcouchbase/contrib/cbsasl/CMakeLists.txt
mt-libcouchbase-1.4.02 ext/libcouchbase/contrib/cbsasl/CMakeLists.txt
mt-libcouchbase-1.4.01 ext/libcouchbase/contrib/cbsasl/CMakeLists.txt
mt-libcouchbase-1.4.0 ext/libcouchbase/contrib/cbsasl/CMakeLists.txt
libcouchbase-1.3.2 ext/libcouchbase/contrib/cbsasl/CMakeLists.txt
libcouchbase-1.3.0 ext/libcouchbase/contrib/cbsasl/CMakeLists.txt