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:
parent
c885b63767
commit
dbe37d9b18
@ -36,10 +36,14 @@ else()
|
|||||||
set(OPENSSL_API_1_1 OFF)
|
set(OPENSSL_API_1_1 OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||||
|
set(SED_FREEBSD "*.c")
|
||||||
|
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||||
|
|
||||||
if(BUNDLE_CIVETWEB)
|
if(BUNDLE_CIVETWEB)
|
||||||
ExternalProject_Add( civetweb
|
ExternalProject_Add( civetweb
|
||||||
GIT_REPOSITORY https://github.com/kakwa/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
|
INSTALL_DIR /usr/local
|
||||||
CMAKE_ARGS .. -DCMAKE_INSTALL_PREFIX=/usr
|
CMAKE_ARGS .. -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
-DCIVETWEB_DISABLE_CGI=ON
|
-DCIVETWEB_DISABLE_CGI=ON
|
||||||
|
Loading…
Reference in New Issue
Block a user