mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-16 05:01:56 +00:00
5af381acad
These are needed by both libraries, so we can do that in a common namespace and unify configuration parameters. Also make sure that the user isn't requesting libomptarget if the library cannot be built on the system. Issue an error in that case. Differential Revision: https://reviews.llvm.org/D40081 llvm-svn: 319342
6 lines
177 B
CMake
6 lines
177 B
CMake
include(CheckCCompilerFlag)
|
|
include(CheckCXXCompilerFlag)
|
|
|
|
check_c_compiler_flag(-Werror OPENMP_HAVE_WERROR_FLAG)
|
|
|
|
check_cxx_compiler_flag(-std=c++11 OPENMP_HAVE_STD_CPP11_FLAG) |