Skip to content

Commit ed003df

Browse files
committed
Add extension to re2c
1 parent b8c0fbd commit ed003df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/cmake/modules/PHP/Re2c.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,11 @@ function(_php_re2c_download)
653653
)
654654

655655
ExternalProject_Get_Property(re2c BINARY_DIR)
656-
set_property(CACHE RE2C_EXECUTABLE PROPERTY VALUE ${BINARY_DIR}/re2c)
656+
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})
657661

658662
add_executable(RE2C::RE2C IMPORTED GLOBAL)
659663
set_target_properties(

0 commit comments

Comments
 (0)