Do not define BOOST_CONTRACT_SOURCE in CMakeLists.txt

This commit is contained in:
Peter Dimov
2021-06-09 18:53:50 +03:00
parent 57fda4e940
commit eca93d24b5

View File

@@ -1,5 +1,4 @@
# Generated by `boostdep --cmake contract`
# Copyright 2020 Peter Dimov
# Copyright 2020, 2021 Peter Dimov
# Distributed under the Boost Software License, Version 1.0.
# https://www.boost.org/LICENSE_1_0.txt
@@ -37,7 +36,8 @@ target_link_libraries(boost_contract
target_compile_definitions(boost_contract
PUBLIC BOOST_CONTRACT_NO_LIB
PRIVATE BOOST_CONTRACT_SOURCE
# Source files already define BOOST_CONTRACT_SOURCE
# PRIVATE BOOST_CONTRACT_SOURCE
)
if(BUILD_SHARED_LIBS)
@@ -51,4 +51,3 @@ if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
add_subdirectory(test)
endif()