stop building ODBC driver under linux if gcc 4.8.0 is chosen as the compiler
This commit is contained in:
parent
32b3c2e65e
commit
ac8c04bc63
|
@ -16,6 +16,9 @@ IF (TD_LINUX_64)
|
||||||
find_package(FLEX)
|
find_package(FLEX)
|
||||||
if(NOT FLEX_FOUND)
|
if(NOT FLEX_FOUND)
|
||||||
message(FATAL_ERROR "you need to install flex first")
|
message(FATAL_ERROR "you need to install flex first")
|
||||||
|
else ()
|
||||||
|
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 5.0.0)
|
||||||
|
message(WARNING "gcc 4.8.0 will complain too much about flex-generated code, we just bypass building ODBC driver in such case")
|
||||||
else ()
|
else ()
|
||||||
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wconversion")
|
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wconversion")
|
||||||
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wconversion")
|
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wconversion")
|
||||||
|
@ -24,6 +27,7 @@ IF (TD_LINUX_64)
|
||||||
ADD_SUBDIRECTORY(tests)
|
ADD_SUBDIRECTORY(tests)
|
||||||
endif ()
|
endif ()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
ELSE ()
|
ELSE ()
|
||||||
message(WARNING "unixodbc is not installed yet, you may install it under ubuntu by typing: sudo apt install unixodbc")
|
message(WARNING "unixodbc is not installed yet, you may install it under ubuntu by typing: sudo apt install unixodbc")
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
Loading…
Reference in New Issue