Skip to content

Commit

Permalink
Enable commandrunner/samples build on anything newer than ubuntu 14.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jepio committed Dec 6, 2024
1 parent f44a904 commit 9425fd5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/modules/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,19 @@ function(add_module directory)
)
endfunction()

# Special Ubuntu 14/GNU 4.8 C compiler build configuration for the Security Baseline module
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.9")
# CommandRunner cannot be built with gcc 4.8.5 default on RHEL 7, CentOS 7
# and Oracle Linux 7, because of rapidjson (we need to switch to parson)
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.8.4")
# these require rapidjson which we don't include in ubuntu 14.04 build container
add_module(commandrunner)
# Same for the C++ sample module
if (BUILD_SAMPLES)
add_subdirectory(samples/cpp)
add_subdirectory(samples/cpp)
endif()
endif()

add_module(securitybaseline)
add_module(configuration)
add_module(deviceinfo)

if (BUILD_MODULETEST)
add_subdirectory(test)
endif()
endif()

0 comments on commit 9425fd5

Please sign in to comment.