Bug in CMakeLists.txt (signed commit)
Currently, cmake throws
```
CMake Error at CMakeLists.txt:134 (if):
if given arguments:
"Release" "STREQUAL" "Release" "OR"
Unknown arguments specified
```
from here
41ec39574f/CMakeLists.txt (L134)
Fix on would be
```
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR "${OMP}")
```
This commit is contained in:
parent
41ec39574f
commit
1cebbd2d2c
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ message(STATUS "Compiling with C++ standard: ${CMAKE_CXX_STANDARD}")
|
|||
# Check if the OpenMP package is available for the current #
|
||||
# setup and set the appropriate C/C++ flags. #
|
||||
#----------------------------------------------------------#
|
||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR ${OMP})
|
||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR "${OMP}")
|
||||
message(STATUS "Enable OpenMP parallelization")
|
||||
find_package(OpenMP)
|
||||
if (OPENMP_FOUND)
|
||||
|
|
Loading…
Reference in a new issue