Article ID: 000087638 Content Type: Error Messages Last Reviewed: 04/04/2023

Why does CMake Error: The source directory "<project_directory>/intel_niosv_m_0_EXAMPLE_DESIGN" does not contain CMakeLists.txt. when compiling the Nios® V processor application in Command Line Interface?

Environment

    Intel® Quartus® Prime Pro Edition
BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description

This problem is observed in Intel® Quartus® Prime Pro Edition Software version 21.3 when the command “cmake -G “Unix Makefile” -B software/app/build” is executed in the CLI is due to missing the “CMakeLists.txt” file in the source location.

 

 

Resolution

To fix this problem, follow one of the following steps:

  1. Execute this command: “cmake -G "Unix Makefiles" -S software/app/ -B software/app/build”. The part of the command highlighted is to add the CMakeLists.txt path to the source location.
  2. Change the directory to software/app folder: “cd software/app”. Then, execute the command: “cmake -G "Unix Makefiles" -B build”

This problem is fixed starting with the Intel® Quartus® Prime Pro Edition Software version 21.4.

Related Products

This article applies to 4 products

Intel Agilex® 7 FPGAs and SoC FPGAs
Intel® Arria® 10 FPGAs and SoC FPGAs
Intel® Cyclone® 10 GX FPGA
Intel® Stratix® 10 FPGAs and SoC FPGAs

1