Skip to content

Commit

Permalink
check for C++ support in GC
Browse files Browse the repository at this point in the history
Fixes #2964
  • Loading branch information
dimpase committed Oct 20, 2023
1 parent ad69301 commit 2d321d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion M2/cmake/FindBDWGC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ if(NOT BDWGC_VERSION_OK)
)
endif()

# check that bdwg-gc has C++ support installed (it must be configured with --enable-cplusplus)
set(CMAKE_REQUIRED_INCLUDES "${BDWGC_INCLUDE_DIR}")
check_include_files(gc/gc_cpp.h BDWGC_CXX_SUPPORT LANGUAGE CXX)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(BDWGC DEFAULT_MSG BDWGC_INCLUDE_DIR BDWGC_LIBRARIES BDWGC_VERSION_OK)
find_package_handle_standard_args(BDWGC DEFAULT_MSG BDWGC_INCLUDE_DIR BDWGC_LIBRARIES BDWGC_VERSION_OK BDWGC_CXX_SUPPORT)

mark_as_advanced(BDWGC_INCLUDE_DIR BDWGC_LIBRARIES)

Expand Down

0 comments on commit 2d321d6

Please sign in to comment.