bytedance / terarkdb

A RocksDB compatible KV storage engine with better performance
Apache License 2.0
2.05k stars 202 forks source link

cmake build with ninja error #46

Open 744570676 opened 3 years ago

744570676 commented 3 years ago

[BUG]

when i build with ninja, the following problems occur

ninja: error: build.ninja:2657: bad $-escape (literal $ must be written as $$)

cmake options:

cmake .. -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_JEMALLOC=ON -DWITH_TESTS=OFF -DWITH_TOOLS=OFF -DWITH_TERARK_ZIP=OFF

but after i modified build.ninja manually by replacing $(nproc) with ${nproc}, the problem was solved.

skyzh commented 3 years ago

nproc is a command to get number of cores. Does ${nproc} work the same as $(nproc)?