Skip to content

Commit

Permalink
Merge pull request #2968 from dimpase/check_for_gc_cxx_support
Browse files Browse the repository at this point in the history
check that GC has C++ support enabled (cmake build)
  • Loading branch information
DanGrayson authored Oct 26, 2023
2 parents e6a49a5 + 2d321d6 commit 6c3a250
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 6c3a250

Please sign in to comment.