Skip to content
Snippets Groups Projects
Commit 2500a7a4 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

cmake: revert the change which breaks cmake build with llvm + openmp

parent cb1c72da
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,6 @@ macro(libmisc_build)
add_library(misc STATIC ${misc_src})
if (HAVE_OPENMP)
target_compile_options(misc PRIVATE "-fopenmp")
if(BUILD_STATIC)
set(GOMP_LIBRARY libgomp.a)
else()
......
......@@ -280,6 +280,11 @@ macro(enable_tnt_compile_flags)
endif()
endmacro(enable_tnt_compile_flags)
if (HAVE_OPENMP)
add_compile_flags("C;CXX" "-fopenmp")
endif()
if (CMAKE_COMPILER_IS_CLANG OR CMAKE_COMPILER_IS_GNUCC)
set(HAVE_BUILTIN_CTZ 1)
set(HAVE_BUILTIN_CTZLL 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment