Skip to content

Commit

Permalink
Merge pull request #1684 from klemensn/openbsd
Browse files Browse the repository at this point in the history
Recognise OpenBSD, generate debug info with clang
  • Loading branch information
ericniebler committed Feb 14, 2022
2 parents 9aa032c + badc97b commit 95fd670
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cmake/ranges_env.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
if (RANGES_VERBOSE_BUILD)
message(STATUS "[range-v3]: system is Windows.")
endif()
elseif(CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
set (RANGES_ENV_OPENBSD TRUE)
if (RANGES_VERBOSE_BUILD)
message(STATUS "[range-v3]: system is OpenBSD.")
endif()
else()
message(WARNING "[range-v3 warning]: unknown system ${CMAKE_SYSTEM_NAME} !")
endif()
Expand Down
2 changes: 1 addition & 1 deletion cmake/ranges_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ if (RANGES_DEBUG_BUILD)
if (RANGES_CXX_COMPILER_CLANG)
if (RANGES_ENV_MACOSX)
ranges_append_flag(RANGES_HAS_GLLDB -glldb)
elseif(RANGES_ENV_LINUX)
elseif(RANGES_ENV_LINUX OR RANGES_ENV_OPENBSD)
ranges_append_flag(RANGES_HAS_GGDB -ggdb)
endif()
endif()
Expand Down

0 comments on commit 95fd670

Please sign in to comment.