Skip to content

Commit c6daa28

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 07abb45 commit c6daa28

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
@@ -127,6 +127,7 @@ include(LibomptargetGetDependencies)
127127
# Set up testing infrastructure.
128128
include(OpenMPTesting)
129129

130+
include(CheckCXXCompilerFlag)
130131
check_cxx_compiler_flag(-Werror=global-constructors OFFLOAD_HAVE_WERROR_CTOR)
131132

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

0 commit comments

Comments
 (0)