1
0
mirror of https://github.com/kakwa/uts-server synced 2024-11-05 09:18:50 +01:00

fix sed command in patching civetweb on FreeBSD

* sed -i requires an extension parameter on FreeBSD, providing one
This commit is contained in:
kakwa 2017-01-26 19:54:03 +01:00
parent c885b63767
commit dbe37d9b18

View File

@ -36,10 +36,14 @@ else()
set(OPENSSL_API_1_1 OFF)
endif()
IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
set(SED_FREEBSD "*.c")
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
if(BUNDLE_CIVETWEB)
ExternalProject_Add( civetweb
GIT_REPOSITORY https://github.com/kakwa/civetweb
PATCH_COMMAND sed -i s/__DATE__/"110973"/ src/main.c src/civetweb.c
PATCH_COMMAND sed -i ${SED_FREEBSD} s/__DATE__/"110973"/ src/main.c src/civetweb.c
INSTALL_DIR /usr/local
CMAKE_ARGS .. -DCMAKE_INSTALL_PREFIX=/usr
-DCIVETWEB_DISABLE_CGI=ON