Skip to content

Commit

Permalink
Move BUILD_STATIC_LIBRARIES option to toplevel CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
png85 committed Jun 7, 2013
1 parent 573c13a commit cbecf60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ PROJECT(json_spirit)
SUBDIRS(json_spirit json_demo json_headers_only_demo json_test)
INCLUDE_DIRECTORIES(json_spirit)

OPTION(BUILD_STATIC_LIBRARIES "Build static libraries" OFF)

OPTION(JSON_SPIRIT_WVALUE_ENABLED "Build with support for unicode types" OFF)
OPTION(JSON_SPIRIT_MVALUE_ENABLED "Build with support for ascii map types" OFF)
OPTION(JSON_SPIRIT_WMVALUE_ENABLED "Build with support for unicode map types" OFF)
Expand Down
2 changes: 0 additions & 2 deletions json_spirit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ json_spirit_writer_template.h )
FIND_PACKAGE(Boost 1.34 REQUIRED)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})

OPTION(BUILD_STATIC_LIBRARIES "Build static libraries" OFF)

if(BUILD_STATIC_LIBRARIES)
ADD_LIBRARY(json_spirit STATIC ${JSON_SPIRIT_SRCS})
install(TARGETS json_spirit ARCHIVE DESTINATION lib)
Expand Down

0 comments on commit cbecf60

Please sign in to comment.