The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15321
======================================================================
Reported By: Denis Denisov
Assigned To:
======================================================================
Project: CMake
Issue ID: 15321
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-12-20 19:12 EST
Last Modified: 2014-12-20 19:12 EST
======================================================================
Summary: Generation of the ninja, ignore escape
Description:
`ninja: error: build.ninja:3194: bad $-escape (literal $ must be written as
$$)``
Additional Information:
before code:
```
# Xcode/Ninja generators undefined MAKE
if(NOT MAKE)
set(MAKE make)
endif()
add_custom_target(
hack
ALL
COMMAND
env OPTBIN="${OCAMLC_OPT_SUFFIX}"
$(MAKE) EXTRA_INCLUDE_PATHS="${extra_include_paths}"
EXTRA_LIB_PATHS="${extra_lib_paths}"
EXTRA_CC_FLAGS="${extra_cc_flags}"
EXTRA_NATIVE_LIBRARIES="${extra_native_libraries}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src"
)
```
code build.ninja:3194:
```
#############################################
# Custom command for hphp/hack/CMakeFiles/hack
build hphp/hack/CMakeFiles/hack: CUSTOM_COMMAND || third-party/lz4/liblz4.a
COMMAND = cd /home/denji/Desktop/hhvm/hphp/hack/src && env OPTBIN=".opt"
$(MAKE) EXTRA_INCLUDE_PATHS="/usr/include
/home/denji/Desktop/hhvm/third-party/lz4"
EXTRA_LIB_PATHS="/usr/lib/x86_64-linux-gnu
/home/denji/Desktop/hhvm/third-party/lz4"
EXTRA_CC_FLAGS="-DHAVE_ELF_GETSHDRSTRNDX -pthread" EXTRA_NATIVE_LIBRARIES="lz4"
``
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-12-20 19:12 Denis Denisov New Issue
======================================================================
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers