Skip to content

Commit deb80c1

Browse files
committed
Lower CMake requirement to 3.18.4
1 parent 046e249 commit deb80c1

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.19)
1+
cmake_minimum_required(VERSION 3.18.4)
22
set(qcoro_VERSION 0.6.0)
33
set(qcoro_SOVERSION 0)
44
project(qcoro LANGUAGES CXX VERSION ${qcoro_VERSION})

cmake/AddQCoroLibrary.cmake

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,19 @@ function(add_qcoro_library)
105105
set_target_properties(
106106
${target_name}
107107
PROPERTIES
108-
WINDOWS_EXPORT_ALL_SYMBOLS 1
109-
VERSION ${qcoro_VERSION}
110-
SOVERSION ${qcoro_SOVERSION}
111108
EXPORT_NAME ${LIB_NAME}
112109
)
113110

111+
if (NOT LIB_INTERFACE)
112+
set_target_properties(
113+
${target_name}
114+
PROPERTIES
115+
WINDOWS_EXPORT_ALL_SYMBOLS 1
116+
VERSION ${qcoro_VERSION}
117+
SOVERSION ${qcoro_SOVERSION}
118+
)
119+
endif()
120+
114121
generate_headers(
115122
camelcase_HEADERS
116123
HEADER_NAMES ${LIB_CAMELCASE_HEADERS}

0 commit comments

Comments
 (0)