Lines 153-159
Link Here
|
153 |
|
153 |
|
154 |
add_library(gbeinterp SHARED gbe_bin_interpreter.cpp) |
154 |
add_library(gbeinterp SHARED gbe_bin_interpreter.cpp) |
155 |
|
155 |
|
156 |
if (LLVM_VERSION_NODOT VERSION_EQUAL 34) |
156 |
if (NOT (LLVM_VERSION_NODOT LESS 34)) |
157 |
find_library(TERMINFO NAMES tinfo ncurses) |
157 |
find_library(TERMINFO NAMES tinfo ncurses) |
158 |
if (${TERMINFO} STREQUAL TERMINFO-NOTFOUND) |
158 |
if (${TERMINFO} STREQUAL TERMINFO-NOTFOUND) |
159 |
message(FATAL_ERROR "no libtinfo or libncurses is found in system") |
159 |
message(FATAL_ERROR "no libtinfo or libncurses is found in system") |
Lines 161-167
Link Here
|
161 |
target_link_libraries(gbe ${TERMINFO}) |
161 |
target_link_libraries(gbe ${TERMINFO}) |
162 |
message(STATUS "use ${TERMINFO} as terminal control library") |
162 |
message(STATUS "use ${TERMINFO} as terminal control library") |
163 |
endif (${TERMINFO} STREQUAL TERMINFO-NOTFOUND) |
163 |
endif (${TERMINFO} STREQUAL TERMINFO-NOTFOUND) |
164 |
endif(LLVM_VERSION_NODOT VERSION_EQUAL 34) |
164 |
endif(NOT (LLVM_VERSION_NODOT LESS 34)) |
165 |
|
165 |
|
166 |
link_directories (${LLVM_LIBRARY_DIR} ${DRM_LIBDIR}) |
166 |
link_directories (${LLVM_LIBRARY_DIR} ${DRM_LIBDIR}) |
167 |
|
167 |
|