Skip to content

Commit

Permalink
Merge pull request RobotLocomotion#4141 from mwoehlke-kitware/shared-…
Browse files Browse the repository at this point in the history
…option

Move SHARED option to superbuild
  • Loading branch information
mwoehlke-kitware authored Nov 18, 2016
2 parents d50d486 + d39d195 commit 45b035f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ drake_add_external(ccd PUBLIC CMAKE

# dreal
drake_add_external(dreal PUBLIC CMAKE
CMAKE_ARGS -DUSE_NLOPT=OFF -DBUILD_TESTING=OFF
CMAKE_ARGS -DUSE_NLOPT=OFF -DBUILD_TESTING=OFF -DSUPPORT_ODE=OFF
SOURCE_SUBDIR src)

# gflags
Expand Down
10 changes: 7 additions & 3 deletions cmake/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,9 @@ macro(drake_setup_platform)
# Ensure that find_package() searches in the install directory first.
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_INSTALL_PREFIX}")

# Set default lib directory name suffix.
set(LIB_SUFFIX "" CACHE STRING "lib directory name suffix")
# Set default lib directory name suffix
set(LIB_SUFFIX "" CACHE STRING
"Suffix of library install directory, e.g. '64'")
mark_as_advanced(LIB_SUFFIX)

drake_setup_compiler()
Expand All @@ -251,12 +252,15 @@ macro(drake_setup_platform)
drake_setup_java()
drake_setup_python()

# Set default build
# Set default build type
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"The type of build. Options are: Debug Release RelWithDebInfo MinSizeRel."
FORCE)
endif()

# Build shared libraries by default
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
endmacro()

#------------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion drake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ if(CMAKE_NINJA_LINK_POOL_SIZE GREATER 0)
endif()

# options
option(BUILD_SHARED_LIBS "Build Drake with shared libraries." ON)
option(LONG_RUNNING_TESTS "some tests should be run nightly for coverage, but are too slow for CI" OFF)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)
Expand Down
2 changes: 1 addition & 1 deletion externals/avl
2 changes: 1 addition & 1 deletion externals/xfoil

0 comments on commit 45b035f

Please sign in to comment.