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.
1 parent b8c0fbd commit ed003dfCopy full SHA for ed003df
cmake/cmake/modules/PHP/Re2c.cmake
@@ -653,7 +653,11 @@ function(_php_re2c_download)
653
)
654
655
ExternalProject_Get_Property(re2c BINARY_DIR)
656
- set_property(CACHE RE2C_EXECUTABLE PROPERTY VALUE ${BINARY_DIR}/re2c)
+ set(re2c ${BINARY_DIR}/re2c)
657
+ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
658
+ string(APPEND re2c ".exe")
659
+ endif()
660
+ set_property(CACHE RE2C_EXECUTABLE PROPERTY VALUE ${re2c})
661
662
add_executable(RE2C::RE2C IMPORTED GLOBAL)
663
set_target_properties(
0 commit comments