Skip to content

Commit

Permalink
Merge pull request #224 from boostorg/CML
Browse files Browse the repository at this point in the history
Allow user to override quadmath linking
  • Loading branch information
mborland authored Sep 3, 2024
2 parents ac09113 + 68c13dc commit 37f1444
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ target_link_libraries(boost_charconv
Boost::core
)

if(NOT BOOST_CHARCONV_QUADMATH_FOUND)
# Check to see if the user specified BOOST_CHARCONV_NO_QUADMATH even with quadmath support being available
if(NOT BOOST_CHARCONV_QUADMATH_FOUND OR BOOST_CHARCONV_NO_QUADMATH)
message(STATUS "Boost.Charconv: quadmath support OFF")
target_compile_definitions(boost_charconv PUBLIC BOOST_CHARCONV_NO_QUADMATH)
else()
Expand Down

0 comments on commit 37f1444

Please sign in to comment.