[flang] Fix cmake errors when building the Decimal and runtime libraries standalone
authorJonathon Penix <jpenix@quicinc.com>
Wed, 11 Jan 2023 17:08:13 +0000 (09:08 -0800)
committerJonathon Penix <jpenix@quicinc.com>
Fri, 13 Jan 2023 19:56:11 +0000 (11:56 -0800)
Currently, cmake gives errors that check_cxx_compiler_flag and append are
unknown when building the Decimal and runtime libraries standalone. Add
the appropriate include to resolve this.

Differential Revision: https://reviews.llvm.org/D141525

flang/lib/Decimal/CMakeLists.txt
flang/runtime/CMakeLists.txt

index 47de6cd..55c236f 100644 (file)
@@ -24,6 +24,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
 
   include(AddLLVM)
   include(AddFlang)
+  include(HandleLLVMOptions)
 
   include(TestBigEndian)
   test_big_endian(IS_BIGENDIAN)
index 174c8db..9425006 100644 (file)
@@ -39,6 +39,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
 
   include(AddLLVM)
   include(AddFlang)
+  include(HandleLLVMOptions)
 
   include(TestBigEndian)
   test_big_endian(IS_BIGENDIAN)