Merge pull request #1317 from ffontaine/master

CMakeLists.txt: Don't require a C++ compiler
This commit is contained in:
Even Rouault 2021-01-04 10:45:52 +01:00 committed by GitHub
commit eb27272a79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ endif()
#string(TOLOWER ${OPENJPEG_NAMESPACE} OPENJPEG_LIBRARY_NAME)
set(OPENJPEG_LIBRARY_NAME openjp2)
project(${OPENJPEG_NAMESPACE})
project(${OPENJPEG_NAMESPACE} C)
# Do full dependency headers.
include_regular_expression("^.*$")

View File

@ -120,5 +120,6 @@ endif(BUILD_THIRDPARTY)
#------------
IF (WITH_ASTYLE)
enable_language(CXX)
ADD_SUBDIRECTORY(astyle)
ENDIF(WITH_ASTYLE)