Skip to content
Snippets Groups Projects
Commit a09b57be authored by Pawel Minda's avatar Pawel Minda
Browse files

fix CMake find script for libedit: dont assume it's there unless there is both lib and include

parent e5f2c7dc
Branches
No related merge requests found
...@@ -54,20 +54,20 @@ else (Libedit_LIBRARIES AND Libedit_INCLUDE_DIRS) ...@@ -54,20 +54,20 @@ else (Libedit_LIBRARIES AND Libedit_INCLUDE_DIRS)
/sw/lib /sw/lib
) )
if (Libedit_LIBRARY) #if (Libedit_LIBRARY)
set(Libedit_FOUND TRUE) # set(Libedit_FOUND TRUE)
endif (Libedit_LIBRARY) #endif (Libedit_LIBRARY)
set(Libedit_INCLUDE_DIRS set(Libedit_INCLUDE_DIRS
${Libedit_INCLUDE_DIR} ${Libedit_INCLUDE_DIR}
) )
if (Libedit_FOUND) if (Libedit_LIBRARY)
set(Libedit_LIBRARIES set(Libedit_LIBRARIES
${Libedit_LIBRARIES} ${Libedit_LIBRARIES}
${Libedit_LIBRARY} ${Libedit_LIBRARY}
) )
endif (Libedit_FOUND) endif (Libedit_LIBRARY)
if (Libedit_INCLUDE_DIRS AND Libedit_LIBRARIES) if (Libedit_INCLUDE_DIRS AND Libedit_LIBRARIES)
set(Libedit_FOUND TRUE) set(Libedit_FOUND TRUE)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment