We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39c9ab0 + 6d8fa4e commit c8e568cCopy full SHA for c8e568c
cmake/cmake/modules/PHP/Re2c.cmake
@@ -599,6 +599,18 @@ function(_php_re2c_download)
599
return(PROPAGATE RE2C_FOUND RE2C_VERSION)
600
endif()
601
602
+ # C++ is required when building re2c from source.
603
+ include(CheckLanguage)
604
+ check_language(CXX)
605
+ if(NOT CMAKE_CXX_COMPILER)
606
+ message(
607
+ FATAL_ERROR
608
+ "The re2c was not found on the system and will be downloaded at build "
609
+ "phase. To build re2c from source also C++ compiler is required. Please, "
610
+ "install missing C++ compiler or install re2c manually."
611
+ )
612
+ endif()
613
+
614
message(STATUS "Re2c ${RE2C_VERSION} will be downloaded at build phase")
615
616
include(ExternalProject)
0 commit comments