Skip to content

Commit 5d9cbe9

Browse files
committed
compile QTSignal statically (fixes #21514)
1 parent 7cc0528 commit 5d9cbe9

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

external/qt-unix-signals/CMakeLists.txt

+4-16
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,16 @@ SET(CMAKE_CXX_STANDARD 11)
1717

1818
option(CMAKE_ENABLE "Enable automatic path configuration" ON)
1919

20-
2120
# Find includes in corresponding build directories
2221
set(CMAKE_INCLUDE_CURRENT_DIR ON)
2322
# Instruct CMake to run moc automatically when needed.
2423
set(CMAKE_AUTOMOC ON)
2524

25+
UNSET(CMAKE_CXX_VISIBILITY_PRESET)
2626

27-
include_directories(
28-
${Qt5Core_INCLUDE_DIRS})
29-
add_library(QTSignal SHARED
30-
sigwatch.cpp
31-
)
32-
target_link_libraries (QTSignal
33-
${Qt5Core_LIBRARIES}
34-
)
27+
include_directories(${Qt5Core_INCLUDE_DIRS})
28+
add_library(QTSignal STATIC sigwatch.cpp)
29+
target_link_libraries (QTSignal ${Qt5Core_LIBRARIES})
3530

3631
#option(WITH_EXAMPLE "Build example executable" ON)
3732
#if (WITH_EXAMPLE)
@@ -40,10 +35,3 @@ target_link_libraries (QTSignal
4035
# QTSignal
4136
# )
4237
#endif(WITH_EXAMPLE)
43-
44-
INSTALL(TARGETS QTSignal
45-
RUNTIME DESTINATION ${QGIS_BIN_DIR}
46-
LIBRARY DESTINATION ${QGIS_LIB_DIR}
47-
ARCHIVE DESTINATION ${QGIS_LIB_DIR}
48-
FRAMEWORK DESTINATION ${QGIS_FW_SUBDIR}
49-
PUBLIC_HEADER DESTINATION ${QGIS_INCLUDE_DIR})

0 commit comments

Comments
 (0)