Skip to content

Commit

Permalink
lzo.cmake: don't use the same symbol for two different tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Golubchik committed May 26, 2014
1 parent 6d46076 commit 45d389f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/lzo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ ENDMACRO()
MACRO (MYSQL_CHECK_LZO)

CHECK_INCLUDE_FILES(lzo/lzo1x.h HAVE_LZO_H)
CHECK_LIBRARY_EXISTS(lzo2 lzo1x_1_compress "" HAVE_LZO_LIB)
CHECK_LIBRARY_EXISTS(lzo2 lzo1x_1_compress "" HAVE_LZO_SHARED_LIB)

IF(HAVE_LZO_LIB AND HAVE_LZO_H)
IF(HAVE_LZO_SHARED_LIB AND HAVE_LZO_H)
ADD_DEFINITIONS(-DHAVE_LZO=1)
LINK_LIBRARIES(lzo2)
ENDIF()
Expand Down

0 comments on commit 45d389f

Please sign in to comment.