mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +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:
commit
c829e6a238
@ -23,13 +23,17 @@ macro(build_serial)
|
|||||||
endif()
|
endif()
|
||||||
endif(UNIX)
|
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
|
# 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_CXX_COMPILER /usr/bin/clang++)
|
||||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
|
||||||
set(SERIAL_BUILD_WARNINGS TRUE)
|
set(SERIAL_BUILD_WARNINGS TRUE)
|
||||||
set(CMAKE_BUILD_TYPE Debug)
|
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_TESTS "Build all of the Serial tests." OFF)
|
||||||
option(SERIAL_BUILD_EXAMPLES "Build all of the Serial examples." OFF)
|
option(SERIAL_BUILD_EXAMPLES "Build all of the Serial examples." OFF)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user