fix clang build (#353)

* Freebsd clang3.8 compile fixes

* clean

* fix

* fix clang build
This commit is contained in:
proller 2017-01-18 01:48:01 +03:00 committed by alexey-milovidov
parent db0fce346a
commit f7c0998599
2 changed files with 5 additions and 1 deletions

View File

@ -540,6 +540,10 @@ endif()
# Example binaries
#============================================================================
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set (CMAKE_EXE_LINKER_FLAGS "")
endif ()
add_executable(example test/example.c)
target_link_libraries(example zlib)
add_test(example example)

View File

@ -1,7 +1,7 @@
include (${CMAKE_SOURCE_DIR}/cmake/find_readline_edit.cmake)
add_executable(zkutil_test zkutil_test.cpp)
target_link_libraries(zkutil_test zkutil dbms ${READLINE_LIB} ${TERMCAP_LIB})
target_link_libraries(zkutil_test zkutil dbms ${LINE_EDITING_LIBS})
add_executable(zkutil_test_commands zkutil_test_commands.cpp)
target_link_libraries(zkutil_test_commands zkutil dbms)