Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

4.3K
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda