We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2a30a8 commit 765b390Copy full SHA for 765b390
cmake/DaemonFlags.cmake
@@ -362,6 +362,18 @@ else()
362
endif()
363
364
365
+ if ((NOT NACL AND NOT BUILD_CGAME AND NOT BUILD_SGAME)
366
+ AND (BUILD_CLIENT OR BUILD_TTY_CLIENT OR BUILD_SERVER OR BUILD_DUMMY_APP))
367
+ option(USE_OPENMP "Use OpenMP to parallelize some tasks" OFF)
368
+
369
+ if (USE_OPENMP)
370
+ try_cxx_flag(FOPENMP "-fopenmp")
371
+ if (NOT FLAG_FOPENMP)
372
+ message(WARNING "Missing OpenMP")
373
+ endif()
374
375
376
377
if (NACL AND USE_NACL_SAIGO AND SAIGO_ARCH STREQUAL "arm")
378
# This should be set for every build type because build type flags
379
# are set after the other custom flags and then have the last word.
0 commit comments