mirror of
https://github.com/curl/curl.git
synced 2025-09-17 09:32:48 +03:00
cmake: minor cleanup
- Remove nneeded include_regular_expression. It was setting what is already a default. - Remove duplicated include. - Don't check for pre-3.0.0 CMake version. We already require at least 3.0.0, so it's just clutter. Ref: #3744
This commit is contained in:
parent
c4e0be4408
commit
639cfeb0f8
|
@ -57,7 +57,6 @@ string(REGEX MATCH "#define LIBCURL_VERSION_NUM 0x[0-9a-fA-F]+"
|
||||||
CURL_VERSION_NUM ${CURL_VERSION_H_CONTENTS})
|
CURL_VERSION_NUM ${CURL_VERSION_H_CONTENTS})
|
||||||
string(REGEX REPLACE "[^0]+0x" "" CURL_VERSION_NUM ${CURL_VERSION_NUM})
|
string(REGEX REPLACE "[^0]+0x" "" CURL_VERSION_NUM ${CURL_VERSION_NUM})
|
||||||
|
|
||||||
include_regular_expression("^.*$") # Sukender: Is it necessary?
|
|
||||||
|
|
||||||
# Setup package meta-data
|
# Setup package meta-data
|
||||||
# SET(PACKAGE "curl")
|
# SET(PACKAGE "curl")
|
||||||
|
@ -104,11 +103,7 @@ endif()
|
||||||
|
|
||||||
if(ENABLE_DEBUG)
|
if(ENABLE_DEBUG)
|
||||||
# DEBUGBUILD will be defined only for Debug builds
|
# DEBUGBUILD will be defined only for Debug builds
|
||||||
if(NOT CMAKE_VERSION VERSION_LESS 3.0)
|
|
||||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:Debug>:DEBUGBUILD>)
|
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:Debug>:DEBUGBUILD>)
|
||||||
else()
|
|
||||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUGBUILD)
|
|
||||||
endif()
|
|
||||||
set(ENABLE_CURLDEBUG ON)
|
set(ENABLE_CURLDEBUG ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -246,7 +241,6 @@ include(CheckLibraryExists)
|
||||||
include(CheckSymbolExists)
|
include(CheckSymbolExists)
|
||||||
include(CheckTypeSize)
|
include(CheckTypeSize)
|
||||||
include(CheckCSourceCompiles)
|
include(CheckCSourceCompiles)
|
||||||
include(CMakeDependentOption)
|
|
||||||
|
|
||||||
# On windows preload settings
|
# On windows preload settings
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user