Skip to content

Commit 5029d53

Browse files
Update CMakeLists.txt
1 parent a34bff5 commit 5029d53

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ add_executable(next ${SRC_FILES})
8484
# Pre-install OpenMP if needed (Clang/Linux)
8585
# ============================
8686
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND UNIX AND NOT APPLE)
87-
# Try a couple of common libomp locations; if missing, install
8887
if(NOT EXISTS "/usr/lib/llvm-18/lib/libomp.so"
8988
AND NOT EXISTS "/usr/lib/x86_64-linux-gnu/libomp.so"
9089
AND NOT EXISTS "/usr/lib/libomp.so")
@@ -115,15 +114,4 @@ if(OpenMP_CXX_FOUND)
115114
target_link_libraries(next PRIVATE OpenMP::OpenMP_CXX)
116115
else()
117116
message(STATUS "OpenMP not found — building in single-threaded mode.")
118-
endif()
119-
message(FATAL_ERROR "Automatic OpenMP installation not supported on this OS.")
120-
endif()
121-
122-
if(OMP_INSTALL_RESULT EQUAL 0)
123-
message(STATUS "OpenMP installed successfully. Re-run CMake configuration.")
124-
message(FATAL_ERROR "")
125-
else()
126-
message(FATAL_ERROR "Automatic OpenMP installation failed. Check CI logs and package manager output.")
127-
endif()
128-
129117
endif()

0 commit comments

Comments
 (0)