```cmake

# BUILD_SHARED_LIBS is a global cmake variable (usually defaults to on) 
# that determines the build type of libraries:
#   http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:BUILD_SHARED_LIBS
# It defaults to shared.
#
# Our only current major use case for static libraries is
# via the mingw cross compiler, though embedded builds
# could be feasibly built this way also (largely untested).

option(BUILD_SHARED_LIBS "Build dynamically-linked binaries" ON)

if (BUILD_SHARED_LIBS)
  add_definitions(-DROS_BUILD_SHARED_LIBS=1)
  message(STATUS "BUILD_SHARED_LIBS is on.")
else()
  message(STATUS "BUILD_STATIC_LIBS is on.")
endif()

```

Remove verbose debug output in the normal case (shared libs on).
user
```cmake

# BUILD_SHARED_LIBS is a global cmake variable (usually defaults to on) 
# that determines the build type of libraries:
#   http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:BUILD_SHARED_LIBS
# It defaults to shared.
#
# Our only current major use case for static libraries is
# via the mingw cross compiler, though embedded builds
# could be feasibly built this way also (largely untested).

option(BUILD_SHARED_LIBS "Build dynamically-linked binaries" ON)

if (BUILD_SHARED_LIBS)
  add_definitions(-DROS_BUILD_SHARED_LIBS=1)
else()
  message(STATUS "BUILD_STATIC_LIBS is off.")
endif()

```
assistant