diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7e5f795..40316b6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,7 +59,6 @@ find_package(Leptonica)
 
 if (LEPTONICA_FOUND AND TESSERACT_FOUND)
    set(OCR_AVAILABLE 1)
-   set(CMAKE_CXX_FLAGS "-fopenmp")
 else()
    message(STATUS "Skanpage will be built without OCR as libraries are missing.")
 endif()
