This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/openmp.md

34 lines
844 B
Markdown
Raw Normal View History

2021-09-19 18:32:45 +00:00
Enables or disables [OpenMP](https://en.wikipedia.org/wiki/OpenMP).
2021-09-07 21:44:56 +00:00
```lua
openmp "value"
```
2021-09-19 18:32:45 +00:00
If no value is set for a configuration, the toolset's default OpenMP option (usually "Off") will be performed.
2021-09-07 21:44:56 +00:00
### 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](buildoptions.md) like this:
```lua
filter "toolset:not msc*"
buildoptions "-fopenmp"
```
## Examples ##
```lua
openmp "On"
```