[offload] Include CheckCXXCompilerFlag in CMake · llvm/llvm-project@e3b2d01 (original) (raw)

Original file line number Diff line number Diff line change
@@ -127,6 +127,7 @@ include(LibomptargetGetDependencies)
127 127 # Set up testing infrastructure.
128 128 include(OpenMPTesting)
129 129
130 +include(CheckCXXCompilerFlag)
130 131 check_cxx_compiler_flag(-Werror=global-constructors OFFLOAD_HAVE_WERROR_CTOR)
131 132
132 133 # LLVM source tree is required at build time for libomptarget