All operations I'm doing on windows using GNU Radio Companion. Before that I downloaded CMake archive cmake-3.29.0-rc4-windows-x86_64 and wrote path to bin folder in system path variable (in cmd cmake command is working).
I dowloaded example of GRC file. It's flowgraph of the GRC file:

I attempt execute it with C++ No GUI option:

As a result, I'm getting follow error:
Generating: "D:\progs\GRC_GNURadio\dvbt_rx_demo_8k"
>>> Warning: The block 'blocks_throttle_0' is deprecated.
Executing: cmake .. && cmake --build . -j7 && cd ../.. && None -e D:\progs\GRC_GNURadio\dvbt_rx_demo_8k/build/dvbt_rx_demo_8k
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:10 (project):
Running
'nmake' '-?'
failed with:
no such file or directory
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
>>> Done (return code 1)
Auto generated CMakeLists.txt:
cmake_minimum_required(VERSION 3.8)
set(CMAKE_CXX_STANDARD 14)
project(dvbt_rx_demo_8k)
find_package(Gnuradio "3.10" COMPONENTS
blocks
fec
... //another blocks
soapy
)
add_executable(dvbt_rx_demo_8k dvbt_rx_demo_8k.cpp)
target_link_libraries(dvbt_rx_demo_8k
gnuradio::gnuradio-blocks
gnuradio::gnuradio-fft
gnuradio::gnuradio-dtv
)
After first execution, I attempted change option Creating CMake to off and added following lines before project() function in previously (in the first execution) auto generated CMakeLists.txt:
set( CMAKE_CXX_COMPILER "/pathto/g++" )
set( CMAKE_C_COMPILER "/pathto/gcc" )
But it caused another error:
Generating: "D:\progs\GRC_GNURadio\dvbt_rx_demo_8k"
>>> Warning: The block 'blocks_throttle_0' is deprecated.
Executing: cmake .. && cmake --build . -j7 && cd ../.. && None -e D:\progs\GRC_GNURadio\dvbt_rx_demo_8k/build/dvbt_rx_demo_8k
CMake Error at CMakeLists.txt:12 (project):
Running
'nmake' '-?'
failed with:
no such file or directory
-- Configuring incomplete, errors occurred!
>>> Done (return code 1)
Then I added CXX in the end of project name in project() function. But got same error.
Executing flowgraph with Python option then execution is finished successful.