CMske: move define 'BOOST_NO_CXX98_FUNCTION_BASE' to CompilerChecksAndSetups macro and support CMake < 3.12

This commit is contained in:
wmayer
2022-09-25 12:18:05 +02:00
parent bd88f7275c
commit 608fb15d40
2 changed files with 3 additions and 3 deletions

View File

@@ -100,4 +100,7 @@ macro(CompilerChecksAndSetups)
add_definitions(-DBOOST_PP_VARIADICS=1)
message(STATUS "Force BOOST_PP_VARIADICS=1 for clang")
endif()
add_definitions(-DBOOST_NO_CXX98_FUNCTION_BASE)
endmacro(CompilerChecksAndSetups)

View File

@@ -34,7 +34,4 @@ macro(ConfigureCMakeVariables)
message(STATUS "includedir: ${CMAKE_INSTALL_INCLUDEDIR}")
message(STATUS "libdir: ${CMAKE_INSTALL_LIBDIR}")
message(STATUS "cmake: ${CMAKE_VERSION}")
add_compile_definitions(BOOST_NO_CXX98_FUNCTION_BASE)
endmacro(ConfigureCMakeVariables)