Skip to content

Commit 8eb02bb

Browse files
committed
Add -Wno-enum-constexpr-conversion for boost 1.79 on recent clang
NREL/OpenStudio#5398
1 parent 768602b commit 8eb02bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ if(UNIX)
400400
# Note: CMAKE_CXX_STANDARD (with no extensions) already sets -std=c++17 (or std=c++1z).
401401
if(APPLE)
402402
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
403+
# TODO: workaround for #5398, remove when updating boost
404+
AddCXXFlagIfSupported(-Wno-enum-constexpr-conversion COMPILER_SUPPORTS_enum_constexpr_conversion) # Clang 16.0+ and Apple Clang 15+ only
405+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
403406
endif()
404407
endif()
405408

0 commit comments

Comments
 (0)