Skip to content

Commit

Permalink
cmake: Fix regression in FindFriBiDi, take 2
Browse files Browse the repository at this point in the history
Applying commit fb01510 doesn't fix
this for Ivanovic, so I'm reverting both that and the original commit
651344e.
  • Loading branch information
irydacea committed Apr 10, 2015
1 parent f14341c commit bf81853
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/FindFriBiDi.cmake
Expand Up @@ -19,13 +19,15 @@ SET(FRIBIDI_FOUND "NO")
# Set variable in temp var, otherwise FIND_PATH might fail
# unset isn't present in the required version of cmake.
FIND_PATH(xFRIBIDI_INCLUDE_DIR fribidi.h
PATH_SUFFIXES fribidi
/usr/local/include/fribidi
/usr/include/fribidi
)
set(FRIBIDI_INCLUDE_DIR ${xFRIBIDI_INCLUDE_DIR})

SET(FRIBIDI_NAMES ${FRIBIDI_NAMES} fribidi libfribidi)
FIND_LIBRARY(FRIBIDI_LIBRARY
NAMES ${FRIBIDI_NAMES}
PATHS /usr/lib /usr/local/lib
)

IF (FRIBIDI_LIBRARY AND FRIBIDI_INCLUDE_DIR)
Expand Down

0 comments on commit bf81853

Please sign in to comment.