vcpkg/ports/leptonica/fix-cmakelists.patch

13 lines
471 B
Diff
Raw Normal View History

2020-10-22 08:42:47 +08:00
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e474463..d2b999d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -14,7 +14,6 @@ if (MSVC)
set_source_files_properties(${src} PROPERTIES LANGUAGE CXX)
endif()
-string(REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
add_library (leptonica ${src} ${hdr})
set_target_properties (leptonica PROPERTIES VERSION ${VERSION_PLAIN})