Allow BUILD_IDLC to be 'AUTO' based on Maven presence
Signed-off-by: Scott K Logan <logans@cottsay.net>
This commit is contained in:
parent
9260464be8
commit
7b428f14b9
1 changed files with 5 additions and 2 deletions
|
@ -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
|
# 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
|
# core library is required, there's no need to build them, and that in turn eliminates the Maven and
|
||||||
# JDK dependency.
|
# JDK dependency.
|
||||||
find_package(Maven 3.0 QUIET)
|
option(BUILD_IDLC "Build IDL preprocessor" ON)
|
||||||
option(BUILD_IDLC "Build IDL preprocessor" ${Maven_FOUND})
|
if(BUILD_IDLC STREQUAL "AUTO")
|
||||||
|
find_package(Maven 3.0 QUIET)
|
||||||
|
set(BUILD_IDLC ${Maven_FOUND})
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CMAKE_C_STANDARD 99)
|
set(CMAKE_C_STANDARD 99)
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "VxWorks")
|
if(CMAKE_SYSTEM_NAME STREQUAL "VxWorks")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue