premake/website/docs/openmp.md
2021-09-17 21:55:30 +08:00

840 B

Enable or disable OpenMP.

openmp "value"

If no value is set for a configuration, the toolset's default OpenMP option (usually Off) will be performed.

Parameters

value is one of:

Value Description
On Turn on OpenMP.
Off Turn off OpenMP.

Applies To

Project configurations.

Availability

Premake 5.0-beta1 or later. Currently only implemented for Visual Studio 2010+. As a workaround for other toolsets, you can use buildoptions like this:

filter "toolset:not msc*"
	buildoptions "-fopenmp"

Examples

openmp "On"