From 1cebbd2d2cd4403195095816ebe8a9b4437883c8 Mon Sep 17 00:00:00 2001 From: Gregor Weiss Date: Mon, 1 Jul 2024 15:18:17 +0000 Subject: [PATCH] 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 https://code.hlrs.de/TOPIO/BigWhoop/src/commit/41ec39574f0f3bad53e645b863ec09390da6698d/CMakeLists.txt#L134 Fix on would be ``` if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR "${OMP}") ``` --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2af498b..5ab55da 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)