Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68992

cmake build does not inherit env vars from previous steps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • cmakebuilder-plugin
    • Windows
      Cmakebuilder: 4.1.1

      C:\Users\user\AppData\Local\Jenkins\.jenkins\workspace\project>call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat" 
      **********************************************************************
      ** Visual Studio 2019 Developer Command Prompt v16.11.16
      ** Copyright (c) 2021 Microsoft Corporation
      **********************************************************************
      [vcvarsall.bat] Environment initialized for: 'x64'
      [build] $ C:\Users\user\AppData\Local\Jenkins\.jenkins\tools\hudson.plugins.cmake.CmakeTool\3.23.2\bin\cmake -G Ninja -D CMAKE_BUILD_TYPE=Release C:\Users\user\AppData\Local\Jenkins\.jenkins\workspace\project
      -- The C compiler identification is unknown
      -- The CXX compiler identification is unknown
      CMake Error at CMakeLists.txt:8 (project):
        No CMAKE_C_COMPILER could be found.  Tell CMake where to find the compiler by setting either the environment
        variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
        the compiler, or to the compiler name if it is in the PATH.
      CMake Error at CMakeLists.txt:8 (project):
        No CMAKE_CXX_COMPILER could be found.  Tell CMake where to find the compiler by setting either the environment
        variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
        to the compiler, or to the compiler name if it is in the PATH. 

      Cmake have to access enviroment initialized by vcvars but it cannot

            15knots Martin Weber
            atom63 null null
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: