Commit 5e3037e telwertowski
committed
1 parent 534b9a7 commit 5e3037e Copy full SHA for 5e3037e
File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,19 @@ IF (GRASS_FOUND)
70
70
71
71
# openpty is currently needed for GRASS shell
72
72
INCLUDE (CheckFunctionExists)
73
+ IF (APPLE )
74
+ SET (CMAKE_REQUIRED_INCLUDES util.h)
75
+ ELSE (APPLE )
73
76
SET (CMAKE_REQUIRED_INCLUDES pty.h)
74
77
SET (CMAKE_REQUIRED_LIBRARIES util)
78
+ ENDIF (APPLE )
75
79
CHECK_FUNCTION_EXISTS(openpty HAVE_OPENPTY)
76
80
77
81
# add 'util' library to the dependencies
78
- IF (HAVE_OPENPTY)
82
+ IF (HAVE_OPENPTY AND NOT APPLE )
79
83
FIND_LIBRARY (OPENPTY_LIBRARY NAMES util PATHS /usr/local/lib /usr/lib c:/msys/local/lib)
80
84
SET (GRASS_LIBRARIES ${GRASS_LIBRARIES} ${OPENPTY_LIBRARY} )
81
- ENDIF (HAVE_OPENPTY)
85
+ ENDIF (HAVE_OPENPTY AND NOT APPLE )
82
86
83
87
ELSE (GRASS_FOUND)
84
88
You can’t perform that action at this time.
0 commit comments