CMakeLists.txt
changeset 1297 d842cd8c9f91
parent 1232 f930f993412b
child 1309 df0609b72174
--- a/CMakeLists.txt	Thu Aug 02 03:03:06 2012 -0400
+++ b/CMakeLists.txt	Mon Aug 20 14:39:46 2012 -0400
@@ -292,13 +292,12 @@
         FIND_LIBRARY(CURSES_LIBRARY NAMES curses ncurses)
         SET(CMAKE_REQUIRED_LIBRARIES ${CURSES_LIBRARY})
         FIND_LIBRARY(READLINE_LIBRARY readline)
-        FIND_LIBRARY(HISTORY_LIBRARY history)
-        IF(READLINE_LIBRARY AND HISTORY_LIBRARY)
+        IF(READLINE_LIBRARY)
             SET(HAVE_SYSTEM_READLINE TRUE)
             SET(TEST_PHYSFS_LIBS ${TEST_PHYSFS_LIBS} ${READLINE_LIBRARY} ${CURSES_LIBRARY})
             INCLUDE_DIRECTORIES(${READLINE_H} ${HISTORY_H})
             ADD_DEFINITIONS(-DPHYSFS_HAVE_READLINE=1)
-        ENDIF(READLINE_LIBRARY AND HISTORY_LIBRARY)
+        ENDIF(READLINE_LIBRARY)
     ENDIF(READLINE_H AND HISTORY_H)
     ADD_EXECUTABLE(test_physfs test/test_physfs.c)
     TARGET_LINK_LIBRARIES(test_physfs ${PHYSFS_LIB_TARGET} ${TEST_PHYSFS_LIBS} ${OTHER_LDFLAGS})