<!-- This file has been automatically generated. See web/README.md -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div id="compose-container" style="direction: ltr" itemscope="" itemtype="https://schema.org/EmailMessage">
<span itemprop="creator" itemscope="" itemtype="https://schema.org/Organization"><span itemprop="name" content="Outlook Mobile for iOS"></span></span>
<div style="direction: ltr;">Hi,
<div><br>
</div>
<div style="direction: ltr;">I am new to cmake and i am working with CMakefile with -E env option written for 3.1 and I am backporting it to 2.8. What is the compatible or equivalent option in 2.8?</div>
<div><br>
</div>
<div style="direction: ltr;">https://github.com/CZ-NIC/turris-os/blob/master/package/system/ubus/patches/001-python.patch</div>
<div><br>
</div>
<div style="direction: ltr;">The line I am dealing with is</div>
<div style="direction: ltr;">+ADD_CUSTOM_TARGET(python ALL</div>
<div style="direction: ltr;">+ COMMAND ${CMAKE_COMMAND} -E env "CC=${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}" "LDSHARED=${LDSHARED}" "CFLAGS=${PYTHON_CFLAGS}" ${PYTHON} ${SETUP_PY} build</div>
<div style="direction: ltr;">+ DEPENDS ubus "${CURRENT_SOURCE_DIR}/ubus_python.c"</div>
<div style="direction: ltr;">+)</div>
<div style="direction: ltr;">+</div>
<div style="direction: ltr;">+INSTALL(</div>
<div style="direction: ltr;">+ CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E env \"CC=${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}\" \"LDSHARED=${LDSHARED}\" \"CFLAGS=${PYTHON_CFLAGS}\" ${PYTHON} ${SETUP_PY} install --prefix=${CMAKE_INSTALL_PREFIX})"</div>
<div style="direction: ltr;">+)</div>
<div><br>
</div>
<div style="direction: ltr;">Thanks</div>
<div style="direction: ltr;">Zer0 0ne</div>
</div>
</div>
</body>
</html>