Skip to content

Commit 2c6bf6d

Browse files
committed
[offload] Include CheckCXXCompilerFlag in CMake
Include CheckCXXCompilerFlag before it is used in the top-level CMake file. This fixes standalone builds, but it is also cleaner than assuming that some previous CMake file will include it for us.
1 parent a348f22 commit 2c6bf6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

offload/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ include(LibomptargetGetDependencies)
129129
# Set up testing infrastructure.
130130
include(OpenMPTesting)
131131

132+
include(CheckCXXCompilerFlag)
132133
check_cxx_compiler_flag(-Werror=global-constructors OFFLOAD_HAVE_WERROR_CTOR)
133134

134135
# LLVM source tree is required at build time for libomptarget

0 commit comments

Comments
 (0)