Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

4.3K
Views
CMAKE_C_COMPILER no establecido, después de EnableLanguage

Instalé CMake en Windows además del compilador gcc y g ++. Agregué las variables a la ruta, pero sigo recibiendo el siguiente error. ¿Podrían ayudarme?

ingrese la descripción de la imagen aquí

 -- Building for: NMake Makefiles CMake Error at CMakeLists.txt:6 (project): Running 'nmake' '-?' failed with: The system cannot find the file specified CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "C:/Users/DEANHOS/Desktop/peer/cmake tutorial/codeAndTech/sample/CMakeFiles/CMakeOutput.log".
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Estas variables deben pasarse en la línea de comando como:

 $ cmake -DCMAKE_CXX_COMPILER=/pathto/g++ -DCMAKE_C_COMPILER=/pathto/gcc /pathto/source

o configura antes de la línea project() en CMakeLists.txt:

 set( CMAKE_CXX_COMPILER "/pathto/g++" ) set( CMAKE_C_COMPILER "/pathto/gcc" ) project(mytest) ...

o alternativamente introducido con el comando -C <toolchain> como

 # mygcc.cmake # toolchain file set( CMAKE_CXX_COMPILER "/pathto/g++" ) set( CMAKE_C_COMPILER "/pathto/gcc" )
 $ cmake -C /pathto/mygcc.cmake /pathto/source
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!