We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 7c48ce2 commit 06b941cCopy full SHA for 06b941c
cmake/FindGRASS.cmake
@@ -70,15 +70,19 @@ IF (GRASS_FOUND)
70
71
# openpty is currently needed for GRASS shell
72
INCLUDE(CheckFunctionExists)
73
+ IF (APPLE)
74
+ SET (CMAKE_REQUIRED_INCLUDES util.h)
75
+ ELSE (APPLE)
76
SET (CMAKE_REQUIRED_INCLUDES pty.h)
77
SET (CMAKE_REQUIRED_LIBRARIES util)
78
+ ENDIF (APPLE)
79
CHECK_FUNCTION_EXISTS(openpty HAVE_OPENPTY)
80
81
# add 'util' library to the dependencies
- IF (HAVE_OPENPTY)
82
+ IF (HAVE_OPENPTY AND NOT APPLE)
83
FIND_LIBRARY(OPENPTY_LIBRARY NAMES util PATHS /usr/local/lib /usr/lib c:/msys/local/lib)
84
SET (GRASS_LIBRARIES ${GRASS_LIBRARIES} ${OPENPTY_LIBRARY})
- ENDIF (HAVE_OPENPTY)
85
+ ENDIF (HAVE_OPENPTY AND NOT APPLE)
86
87
ELSE (GRASS_FOUND)
88
0 commit comments