File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -280,17 +280,7 @@ if(SENTRY_TRANSPORT_CURL)
280280 find_package (CURL REQUIRED COMPONENTS AsynchDNS)
281281 endif ()
282282
283- if (TARGET CURL::libcurl) # Only available in cmake 3.12+
284- target_link_libraries (sentry PRIVATE CURL::libcurl)
285- else ()
286- # Needed for cmake < 3.12 support (cmake 3.12 introduced the target CURL::libcurl)
287- target_include_directories (sentry PRIVATE ${CURL_INCLUDE_DIR} )
288- # The exported sentry target must not contain any path of the build machine, therefore use generator expressions
289- string (REPLACE ";" "$<SEMICOLON>" GENEX_CURL_LIBRARIES "${CURL_LIBRARIES} " )
290- string (REPLACE ";" "$<SEMICOLON>" GENEX_CURL_COMPILE_DEFINITIONS "${CURL_COMPILE_DEFINITIONS} " )
291- target_link_libraries (sentry PRIVATE $<BUILD_INTERFACE:${GENEX_CURL_LIBRARIES} >)
292- target_compile_definitions (sentry PRIVATE $<BUILD_INTERFACE:${GENEX_CURL_COMPILE_DEFINITIONS} >)
293- endif ()
283+ target_link_libraries (sentry PRIVATE CURL::libcurl)
294284endif ()
295285
296286if (SENTRY_TRANSPORT_COMPRESSION)
@@ -428,9 +418,6 @@ if(SENTRY_WITH_LIBUNWINDSTACK)
428418endif ()
429419
430420if (SENTRY_BACKEND_CRASHPAD)
431- # FIXME: required for cmake 3.12 and lower:
432- # - NEW behavior lets normal variable override option
433- cmake_policy (SET CMP0077 NEW)
434421 if (SENTRY_BUILD_SHARED_LIBS)
435422 set (CRASHPAD_ENABLE_INSTALL OFF CACHE BOOL "Enable crashpad installation" FORCE)
436423 else ()
You can’t perform that action at this time.
0 commit comments