Skip to content

Commit

Permalink
qmake|Unix: Use pkg-config to determine flags for ncurses
Browse files Browse the repository at this point in the history
This produces a proper error message during the qmake run if ncurses is
not available.
  • Loading branch information
skyjake committed Jan 13, 2015
1 parent 71b0194 commit c2f5993
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions doomsday/dep_assimp.pri
Expand Up @@ -39,8 +39,6 @@ deng_extassimp {
QMAKE_LFLAGS += -Wl,-rpath,$$ASSIMP_DIR/lib
}
}


}
else {
# On Windows we assume that cmake has been run in the root of
Expand Down
6 changes: 5 additions & 1 deletion doomsday/dep_curses.pri
Expand Up @@ -7,5 +7,9 @@ else:win32 {
}
else {
# Generic Unix.
LIBS += -lncurses
!system(pkg-config --exists ncurses) {
error(Missing dependency: ncurses)
}
QMAKE_CXXFLAGS += $$system(pkg-config --cflags ncurses)
LIBS += $$system(pkg-config --libs ncurses)
}

0 comments on commit c2f5993

Please sign in to comment.