CMakeLists.txt: Don't require a C++ compiler
[openjpeg.git] / thirdparty / CMakeLists.txt
index b0b229c8dde93f0ab43f2f9dd4c0bdee9aeb4d08..ebdcd9d4d09cb73dbbddcf708bd7ffbee8b7830a 100644 (file)
@@ -120,5 +120,6 @@ endif(BUILD_THIRDPARTY)
 
 #------------
 IF (WITH_ASTYLE)
+  enable_language(CXX)
   ADD_SUBDIRECTORY(astyle)
 ENDIF(WITH_ASTYLE)