summaryrefslogtreecommitdiff
path: root/tests/projects/openmp/hello/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-12 22:59:59 +0800
committerruki <[email protected]>2020-10-12 22:59:59 +0800
commitc79cdeab5474507647f1c29b2cb759550f98e8b6 (patch)
treee414374cef6a4f5c460e1f5dba23eb8f3d8aa268 /tests/projects/openmp/hello/xmake.lua
parent55209d22fedd5a0ea5323e81356cfe0c88603f30 (diff)
add libomp for openmp examples
Diffstat (limited to 'tests/projects/openmp/hello/xmake.lua')
-rw-r--r--tests/projects/openmp/hello/xmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/projects/openmp/hello/xmake.lua b/tests/projects/openmp/hello/xmake.lua
index 685a6a34b..c1f837287 100644
--- a/tests/projects/openmp/hello/xmake.lua
+++ b/tests/projects/openmp/hello/xmake.lua
@@ -1,3 +1,6 @@
+add_requires("libomp", {optional = true})
target("hello")
set_kind("binary")
add_files("src/*.c")
+ add_rules("c.openmp")
+ add_packages("libomp")