1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44:53 +08:00

Merge pull request #21 from davidhodo/master

add option to not use clang so i can use this in bitbake
This commit is contained in:
William Woodall 2012-07-21 13:56:45 -07:00
commit c829e6a238

View File

@ -23,13 +23,17 @@ macro(build_serial)
endif()
endif(UNIX)
IF(NOT DEFINED BUILD_NO_CLANG)
option(BUILD_NO_CLANG "Do not use the Clang compiler." OFF)
ENDIF(NOT DEFINED BUILD_NO_CLANG)
# Use clang if available
IF(EXISTS /usr/bin/clang)
IF(EXISTS /usr/bin/clang AND NOT BUILD_NO_CLANG)
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
set(SERIAL_BUILD_WARNINGS TRUE)
set(CMAKE_BUILD_TYPE Debug)
ENDIF(EXISTS /usr/bin/clang)
ENDIF(EXISTS /usr/bin/clang AND NOT BUILD_NO_CLANG)
option(SERIAL_BUILD_TESTS "Build all of the Serial tests." OFF)
option(SERIAL_BUILD_EXAMPLES "Build all of the Serial examples." OFF)