[Openmp-commits] [openmp] [OpenMP] Add ompTest library to OpenMP (PR #147381)

via Openmp-commits openmp-commits at lists.llvm.org
Tue Jul 15 08:19:31 PDT 2025


================
@@ -0,0 +1,116 @@
+##===----------------------------------------------------------------------===##
+#
+# Build OMPT unit testing library: ompTest
+#
+##===----------------------------------------------------------------------===##
+
+cmake_minimum_required(VERSION 3.22)
+project(omptest LANGUAGES CXX)
+
+option(LIBOMPTEST_BUILD_STANDALONE
+       "Build ompTest 'standalone', i.e. w/o GoogleTest." OFF)
----------------
jprotze wrote:

No, I mean, instead of OFF by default, use the value of `OPENMP_STANDALONE_BUILD` as the default for the option
```suggestion
       "Build ompTest 'standalone', i.e. w/o GoogleTest." ${OPENMP_STANDALONE_BUILD})
```
If we build with llvm-project/openmp as the source directory, the option will automatically use the sane default.

https://github.com/llvm/llvm-project/pull/147381


More information about the Openmp-commits mailing list