Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CMake project version depends on BOOST_SUPERPROJECT_VERSION
Current Boost-wide convention is to call project with BOOST_SUPERPROJECT_VERSION
  • Loading branch information
mloskot authored and vinniefalco committed Mar 17, 2020
commit bbfb09b26c8acb105c02328a9222af2af384d94f
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ if(BOOST_SUPERPROJECT_VERSION)
set(BOOST_JSON_VERSION ${BOOST_SUPERPROJECT_VERSION})
endif()

project(boost_json VERSION ${BOOST_JSON_VERSION} LANGUAGES CXX)
if (BOOST_SUPERPROJECT_VERSION)
project(boost_json VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
else()
project(boost_json VERSION "${BOOST_JSON_VERSION}" LANGUAGES CXX)
endif()

file(GLOB_RECURSE BOOST_JSON_HEADERS CONFIGURE_DEPENDS
include/boost/*.hpp
Expand Down