Lines 10-17
option(MANPAGES "Build man pages via rst2man" ON)
Link Here
|
10 |
option(VCLIENT "Build the vclient helper program (for communication with vcontrold)" ON) |
10 |
option(VCLIENT "Build the vclient helper program (for communication with vcontrold)" ON) |
11 |
option(VSIM "Build the vsim helper program (for development and testing purposes)" OFF) |
11 |
option(VSIM "Build the vsim helper program (for development and testing purposes)" OFF) |
12 |
|
12 |
|
13 |
# Default to -fcommon for GCC 10 |
13 |
# Default to -fcommon for GCC 10 and clang |
14 |
if (CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 10) |
14 |
if ((CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 10) |
|
|
15 |
OR CMAKE_C_COMPILER_ID MATCHES "Clang") |
16 |
|
15 |
set (CMAKE_C_FLAGS "-fcommon ${CMAKE_C_FLAGS}") |
17 |
set (CMAKE_C_FLAGS "-fcommon ${CMAKE_C_FLAGS}") |
16 |
endif () |
18 |
endif () |
17 |
|
19 |
|