slajerek / RetroDebugger

Retro Debugger is a multiplatform debugger APIs host for retro computers: C64 (Vice), Atari800 and NES (NestopiaUE).
175 stars 20 forks source link

CMake: fix wrong braces around CMAKE_C_FLAGS #50

Closed UffeJakobsen closed 4 months ago

UffeJakobsen commented 4 months ago

Explanation:

The typo goes unnoticed with the default cmake-generator (Unix Makefiles) But if you switch to another cmake-generator - eg Ninja (using option "-G Ninja") the following error appears when attempting build:

# cmake --build _build.dir -j 1;
ninja: error: build.ninja:165: bad $-escape (literal $ must be written as $$)
  FLAGS = $(CMAKE_C_FLAGS) -fpermissive -O2 -g -DNDEBUG   -pthread
          ^ near here

This PR fixes this error/problem by changing the erroneous ()'s into {}'s