summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/openmp/load.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-11-28 14:12:30 +0800
committerruki <[email protected]>2021-11-28 14:12:30 +0800
commitea128c2d17c1d8bbfd8ac8ece36c708021c7b4b5 (patch)
treefe36ad387921a58e580899ebc4749ebb0e9d87b5 /xmake/rules/c++/openmp/load.lua
parentba46c0c19a03042c08943728a1d94b4df556a436 (diff)
add warning
Diffstat (limited to 'xmake/rules/c++/openmp/load.lua')
-rw-r--r--xmake/rules/c++/openmp/load.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/rules/c++/openmp/load.lua b/xmake/rules/c++/openmp/load.lua
index a4535f553..86828cc52 100644
--- a/xmake/rules/c++/openmp/load.lua
+++ b/xmake/rules/c++/openmp/load.lua
@@ -20,6 +20,7 @@
-- main entry
function main(target, sourcekind)
+ wprint("we no longer need add_rules(\"%s.openmp\") now, you just need to add add_packages(\"libomp\").", sourcekind == "cxx" and "c++" or "c")
local _, compiler_name = target:tool(sourcekind)
local flag_name = sourcekind == "cxx" and "cxxflags" or "cflags"
if compiler_name == "cl" then