Skip to content

Commit

Permalink
Allow BUILD_IDLC to be 'AUTO' based on Maven presence
Browse files Browse the repository at this point in the history
Signed-off-by: Scott K Logan <[email protected]>
  • Loading branch information
cottsay authored and eboasson committed Nov 14, 2019
1 parent 9260464 commit 7b428f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_SMALL)
# By default the Java-based components get built, but make it possible to disable that: if only the
# core library is required, there's no need to build them, and that in turn eliminates the Maven and
# JDK dependency.
find_package(Maven 3.0 QUIET)
option(BUILD_IDLC "Build IDL preprocessor" ${Maven_FOUND})
option(BUILD_IDLC "Build IDL preprocessor" ON)
if(BUILD_IDLC STREQUAL "AUTO")
find_package(Maven 3.0 QUIET)
set(BUILD_IDLC ${Maven_FOUND})
endif()

set(CMAKE_C_STANDARD 99)
if(CMAKE_SYSTEM_NAME STREQUAL "VxWorks")
Expand Down

0 comments on commit 7b428f1

Please sign in to comment.