mirror of
https://github.com/kakwa/uts-server
synced 2024-12-04 23:15:54 +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
10f504db61
commit
0b15956d0c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user