cmake build does not inherit env vars from previous steps

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Martin Weber
            Reporter:
            null null
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: