Skip to content

Commit

Permalink
Add flag to force micro-CDR build (eProsima#264)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>
  • Loading branch information
Acuadros95 authored and roncapat committed Nov 15, 2021
1 parent ddc4530 commit 4748c9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cmake_minimum_required(VERSION 3.5.0 FATAL_ERROR)
###############################################################################
# Build options
###############################################################################
option(UCLIENT_BUILD_MICROCDR "Force local build of Micro CDR." OFF)
option(UCLIENT_SUPERBUILD "Enable superbuild compilation." ON)
option(UCLIENT_BUILD_TESTS "Build tests." OFF)
option(UCLIENT_BUILD_EXAMPLES "Build examples." OFF)
Expand Down
6 changes: 5 additions & 1 deletion cmake/SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ enable_language(CXX)

# Micro CDR.
unset(microcdr_DIR CACHE)
find_package(microcdr ${_microcdr_version} EXACT QUIET)

if(NOT UCLIENT_BUILD_MICROCDR)
find_package(microcdr ${_microcdr_version} EXACT QUIET)
endif()

if(NOT microcdr_FOUND)
ExternalProject_Add(microcdr
GIT_REPOSITORY
Expand Down

0 comments on commit 4748c9f

Please sign in to comment.