Added OpenMP to the project.
This commit is contained in:
parent
52aece5481
commit
87b96e4ebc
@ -10,7 +10,7 @@ endif()
|
|||||||
set(SRCS
|
set(SRCS
|
||||||
src/Main.cpp)
|
src/Main.cpp)
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "-std=c++14 -fno-elide-constructors -pedantic-errors -Wall -Wextra -Werror -Wpedantic -Winit-self -Wmissing-declarations -Wuninitialized -Wfatal-errors")
|
set(CMAKE_CXX_FLAGS "-std=c++14 -fopenmp -fno-elide-constructors -pedantic-errors -Wall -Wextra -Werror -Wpedantic -Winit-self -Wmissing-declarations -Wuninitialized -Wfatal-errors")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -g -O0")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -g -O0")
|
||||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS} -g -O3")
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS} -g -O3")
|
||||||
|
@ -6,7 +6,7 @@ Indivisible is an optimized prime number generator written in C++.
|
|||||||
|
|
||||||
Building
|
Building
|
||||||
--------
|
--------
|
||||||
This project uses CMake to build.
|
This project uses CMake to build and depends on OpenMP.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd build/
|
$ cd build/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user