Sha256: f3b288d3c577705643d0ad729a4736068252c21b8656971f5d661ef03ae42705

Contents?: true

Size: 659 Bytes

Versions: 16

Compression:

Stored size: 659 Bytes

Contents

find_package(CURL REQUIRED)

include_directories(BEFORE ${CURL_INCLUDE_DIRS})

if (CURL_STATIC)
    set(CURL_LINK STATIC)
else()
    set(CURL_LINK SHARED)
endif()
add_library(mock_curl ${CURL_LINK} mock_curl.cc)
set_target_properties(mock_curl PROPERTIES COMPILE_FLAGS "${LEATHERMAN_CXX_FLAGS}")
if (WIN32)
    symbol_exports(mock_curl "${CMAKE_CURRENT_LIST_DIR}/export.h")
endif()

# Namespacing curl libs so we don't pollute the global namespace
# Needed to properly link libmock_curl in tests
set(LEATHERMAN_INT_CURL_LIBS ${CURL_LIBRARIES})
export_var(LEATHERMAN_INT_CURL_LIBS)

set(LEATHERMAN_TEST_CURL_LIB mock_curl)
export_var(LEATHERMAN_TEST_CURL_LIB)

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.12.1.cfacter.20181031 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.11.6.cfacter.20181031 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.12.1.cfacter.20181023 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.11.5.cfacter.20181022 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.12.0.cfacter.20181004 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.12.0.cfacter.20181001 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.12.0.cfacter.20180918 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.11.4.cfacter.20180821 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.11.3.cfacter.20180716 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.11.2.cfacter.20180612 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.9.6.cfacter.20180612 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.11.2.cfacter.20180606 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.9.6.cfacter.20180606 ext/facter/leatherman/curl/tests/CMakeLists.txt
facter-3.11.0.cfacter.20180319 ext/facter/leatherman/curl/tests/CMakeLists.txt
cfacter-3.11.0.rc.20180314 ext/facter/leatherman/curl/tests/CMakeLists.txt