mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-23 04:04:54 +08:00
Merge d7b12661e53d5c51684e2208f716ae6d43e111dc into c5a2d7b4bce43d38857fdb446e6ac73dc21fa53c
This commit is contained in:
commit
3fc0fb7769
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user