Add CMAKE configuration for C standard version (#340)

* Add C standard configuration

Signed-off-by: acuadros95 <acuadros1995@gmail.com>

* Update C define

Signed-off-by: acuadros95 <acuadros1995@gmail.com>

* Remove CMAKE conditional

Signed-off-by: acuadros95 <acuadros1995@gmail.com>

---------

Signed-off-by: acuadros95 <acuadros1995@gmail.com>
This commit is contained in:
Antonio Cuadros 2023-02-16 09:52:30 +01:00 committed by GitHub
parent 139e05a8b9
commit 8dfd8dc031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -76,6 +76,8 @@ set(UCLIENT_HARD_LIVELINESS_CHECK_TIMEOUT 10000 CACHE STRING "Set the hard livel
# Off-standard features and tweaks
option(UCLIENT_TWEAK_XRCE_WRITE_LIMIT "This feature uses a tweak to allow XRCE WRITE DATA submessages grater than 64 kB." ON)
set(UCLIENT_C_STANDARD 99 CACHE STRING "Version of the C language used to build the library")
###############################################################################
# Dependencies
###############################################################################
@ -319,7 +321,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
SOVERSION
${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
C_STANDARD
99
${UCLIENT_C_STANDARD}
C_STANDARD_REQUIRED
YES
POSITION_INDEPENDENT_CODE