Skip to content

Commit

Permalink
add definitions for qtermwidget on osx, fix for #13277
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Aug 27, 2015
1 parent bea14e3 commit cee794a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/plugins/grass/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ IF(NOT WIN32)
)
ENDIF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")

IF (APPLE)
ADD_DEFINITIONS(-DHAVE_UTMPX -D_UTMPX_COMPAT)
ENDIF(APPLE)
CHECK_FUNCTION_EXISTS(updwtmpx HAVE_UPDWTMPX)
IF(HAVE_UPDWTMPX)
ADD_DEFINITIONS(-DHAVE_UPDWTMPX)
ENDIF(HAVE_UPDWTMPX)


SET(KB_LAYOUT_DIR "${QGIS_DATA_DIR}/grass/qtermwidget/kb-layouts")
ADD_DEFINITIONS(-DKB_LAYOUT_DIR=\\\"${CMAKE_INSTALL_PREFIX}/${KB_LAYOUT_DIR}\\\")

Expand Down

0 comments on commit cee794a

Please sign in to comment.