Added OpenMP to the project.

This commit is contained in:
Nicolás A. Ortega 2016-11-30 19:09:29 +01:00
parent 52aece5481
commit 87b96e4ebc
No known key found for this signature in database
GPG Key ID: 614272579C2070D1
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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/