DanBloomberg / leptonica

Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica. See leptonica.org for more documentation.
Other
1.74k stars 387 forks source link

Please fix CMake for build Debug on linux #698

Closed zappaz00 closed 1 year ago

zappaz00 commented 1 year ago

CXX for project : without it check_cxx_compiler_flag undefined and debug version on linux configuring with errors "check_compiler_flag: CXX: needs to be enabled before use." Errors from 277 line of CMakeLists.txt

Way to fix: image

zdenop commented 1 year ago

Leptonica is C project, so define it as CXX is misleading... Can you please provide minimal example case for replicating problem?

amitdo commented 1 year ago

697

!@zdenop,

You removed CXX from the project command, but there are still some other CXX left.

CMAKE_CXX_COMPILER_ID

include(CheckCXXCompilerFlag)

check_cxx_compiler_flag

CMAKE_CXX_FLAGS