File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,21 @@ ENDIF (NOT BISON_EXECUTABLE)
110
110
# we don't use cblas
111
111
SET (DONT_LINK_CBLAS TRUE )
112
112
113
+ IF (NOT WIN32 )
114
+ INCLUDE (CheckFunctionExists )
115
+ CHECK_FUNCTION_EXISTS (openpty OPENPTY_IN_LIBC )
116
+ IF (NOT OPENPTY_IN_LIBC )
117
+ SET (CMAKE_REQUIRED_INCLUDES util.h )
118
+ SET (CMAKE_REQUIRED_LIBRARIES util )
119
+ CHECK_FUNCTION_EXISTS (openpty NEED_LIBUTIL )
120
+ IF (NEED_LIBUTIL )
121
+ SET (OPENPTY_LIBRARY util )
122
+ ELSE (NEED_LIBUTIL )
123
+ MESSAGE (SEND_ERROR "openpty not found!" )
124
+ ENDIF (NEED_LIBUTIL )
125
+ ENDIF (NOT OPENPTY_IN_LIBC )
126
+ ENDIF (NOT WIN32 )
127
+
113
128
# required
114
129
FIND_PACKAGE (Proj )
115
130
FIND_PACKAGE (Expat ) # GPS importer plugin
Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ INCLUDE_DIRECTORIES(
150
150
TARGET_LINK_LIBRARIES (grassplugin
151
151
qgisgrass
152
152
qgis_gui
153
+ ${OPENPTY_LIBRARY}
153
154
)
154
155
155
156
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ SET_TARGET_PROPERTIES(qgispython PROPERTIES VERSION ${COMPLETE_VERSION} SOVERSIO
27
27
TARGET_LINK_LIBRARIES (qgispython
28
28
qgis_core
29
29
${PYTHON_LIBRARY}
30
+ ${OPENPTY_LIBRARY}
30
31
)
31
32
32
33
IF (APPLE )
You can’t perform that action at this time.
0 commit comments