Git Product home page Git Product logo

microsoft / cmake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kitware/cmake

183.0 79.0 71.0 146.98 MB

CMake, the cross-platform, open-source build system.

Home Page: http://www.cmake.org

License: Other

Shell 0.46% CMake 25.38% Emacs Lisp 0.05% C 42.87% C++ 30.74% Fortran 0.04% HTML 0.01% Python 0.36% Perl 0.02% Assembly 0.04% Java 0.02% TeX 0.01% Pascal 0.01% Lua 0.01% JavaScript 0.01% M 0.01% Objective-C++ 0.01% PHP 0.01% Pike 0.01% Ruby 0.01%

cmake's Introduction

CMake

Introduction

CMake is a cross-platform, open-source build system generator. For full documentation visit the CMake Home Page and the CMake Documentation Page. The CMake Community Wiki also references useful guides and recipes.

CMake is maintained and supported by Kitware and developed in collaboration with a productive community of contributors.

License

CMake is distributed under the OSI-approved BSD 3-clause License. See Copyright.txt for details.

Building CMake

Supported Platforms

  • Microsoft Windows
  • Apple macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Solaris
  • AIX

Other UNIX-like operating systems may work too out of the box, if not it should not be a major problem to port CMake to this platform. Please post to the CMake Discourse Forum to ask if others have had experience with the platform.

Building CMake from Scratch

UNIX/Mac OSX/MinGW/MSYS/Cygwin

You need to have a C++ compiler (supporting C++11) and a make installed. Run the bootstrap script you find in the source directory of CMake. You can use the --help option to see the supported options. You may use the --prefix=<install_prefix> option to specify a custom installation directory for CMake. Once this has finished successfully, run make and make install.

For example, if you simply want to build and install CMake from source, you can build directly in the source tree:

$ ./bootstrap && make && sudo make install

Or, if you plan to develop CMake or otherwise run the test suite, create a separate build tree:

$ mkdir build && cd build
$ ../bootstrap && make

Windows

There are two ways for building CMake under Windows:

  1. Compile with MSVC from VS 2015 or later. You need to download and install a binary release of CMake. You can get these releases from the CMake Download Page. Then proceed with the instructions below for Building CMake with CMake.
  2. Bootstrap with MinGW under MSYS2. Download and install MSYS2. Then install the required build tools:

    $ pacman -S --needed git base-devel mingw-w64-x86_64-gcc

    and bootstrap as above.

Building CMake with CMake

You can build CMake as any other project with a CMake-based build system: run the installed CMake on the sources of this CMake with your preferred options and generators. Then build it and install it. For instructions how to do this, see documentation on Running CMake.

To build the documentation, install Sphinx and configure CMake with -DSPHINX_HTML=ON and/or -DSPHINX_MAN=ON to enable the "html" or "man" builder. Add -DSPHINX_EXECUTABLE=/path/to/sphinx-build if the tool is not found automatically.

Reporting Bugs

If you have found a bug:

  1. If you have a patch, please read the CONTRIBUTING.rst document.
  2. Otherwise, please post to the CMake Discourse Forum and ask about the expected and observed behaviors to determine if it is really a bug.
  3. Finally, if the issue is not resolved by the above steps, open an entry in the CMake Issue Tracker.

Contributing

See CONTRIBUTING.rst for instructions to contribute.

cmake's People

Contributors

berkgeveci avatar billhoffman avatar bradking avatar craigscott-crascit avatar cristianadam avatar derdakon avatar dlrdave avatar do-m-en avatar drdanz avatar gjasny avatar jgoshi avatar jwuttke avatar kwrobot avatar kylefromkitware avatar malaterre avatar markapola avatar mathstuf avatar neundorf avatar ngladitz avatar pdl3 avatar purplekarrot avatar robertmaynard avatar sebastienbarre avatar steveire avatar syntheticpp avatar tambry avatar theerk avatar wahikihiki avatar zachmullen avatar zaufi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cmake's Issues

Cmake 3.1.x generates WinMD reference HintPaths with unnecessary quotes

We've been using a build of cmake 3.1.x for some time now to build Windows Phone 8.1 and Store apps. If we add a reference to a winmd file on disk and the path contains spaces, the resulting entry in the vcxproj is incorrectly quoted.

Here's where we add the reference:

set_property(TARGET MyTarget
  PROPERTY VS_WINRT_REFERENCES
  "C:/ProgramData/Application\ Data/some/path/to/Component.winmd"
)

And the resulting section of the vcxproj is:

<Reference Include="Component">
      <IsWinMDFile>true</IsWinMDFile>
      <HintPath>"C:\ProgramData\Application Data\some\path\to\Component.winmd"</HintPath>    </Reference>

So when we run MSBuild, we get errors about being unable to resolve the reference, notably:

For SearchPath "{HintPathFromItem}".
                 Considered ""C:\ProgramData\Application Data\some\path\to\Component.winmd"", but it didn't exist.

Add Windows Driver Kit (UMDF/KMDF) support

The Windows SDK discovery is already embedded in CMake, but the Driver toolkit could not be found. Especially it isn't defined how to specify the target platform (e.g., Windows 7/Desktop or Windows 10/Mobile) and how to generate UMDF/KMDF Visual Studio solutions

CSharp

Please, consider adding CS language to Project command.

pthread.h not found

I've been getting this error when trying to build a CMake-based folder in VS 2017:

1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/FindThreads.cmake(128):  CHECK_INCLUDE_FILE(pthread.h CMAKE_HAVE_PTHREAD_H )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(38):  if(NOT DEFINED CMAKE_HAVE_PTHREAD_H )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(39):  if(CMAKE_REQUIRED_INCLUDES )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(41):  else()
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(42):  set(CHECK_INCLUDE_FILE_C_INCLUDE_DIRS )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(44):  set(MACRO_CHECK_INCLUDE_FILE_FLAGS  )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(45):  set(CHECK_INCLUDE_FILE_VAR pthread.h )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(46):  configure_file(C:/PROGRAM FILES (X86)/MICROSOFT VISUAL STUDIO/PREVIEW/PROFESSIONAL/COMMON7/IDE/COMMONEXTENSIONS/MICROSOFT/CMAKE/CMake/share/cmake-3.8/Modules/CheckIncludeFile.c.in C:/Git/Licensing/out/x64-Debug/CMakeFiles/CMakeTmp/CheckIncludeFile.c )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(48):  if(NOT CMAKE_REQUIRED_QUIET )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(49):  message(STATUS Looking for pthread.h )
1> -- Looking for pthread.h
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(51):  if(2 EQUAL 3 )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(56):  try_compile(CMAKE_HAVE_PTHREAD_H C:/Git/Licensing/out/x64-Debug C:/Git/Licensing/out/x64-Debug/CMakeFiles/CMakeTmp/CheckIncludeFile.c COMPILE_DEFINITIONS  CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=  OUTPUT_VARIABLE OUTPUT )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(65):  if(2 EQUAL 3 )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(69):  if(CMAKE_HAVE_PTHREAD_H )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(78):  else()
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(79):  if(NOT CMAKE_REQUIRED_QUIET )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(80):  message(STATUS Looking for pthread.h - not found )
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(82):  set(CMAKE_HAVE_PTHREAD_H  CACHE INTERNAL Have include pthread.h )
1> -- Looking for pthread.h - not found
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(83):  file(APPEND C:/Git/Licensing/out/x64-Debug/CMakeFiles/CMakeError.log Determining if the include file pthread.h  exists failed with the following output:
1>  Change Dir: C:/Git/Licensing/out/x64-Debug/CMakeFiles/CMakeTmp
1> 
1> Run Build Command:"C:/PROGRA~2/MIB055~1/Preview/PROFES~1/Common7/IDE/COMMON~1/MICROS~1/CMake/Ninja/ninja.exe" "cmTC_6c29b"
1> [1/2] Building C object CMakeFiles\cmTC_6c29b.dir\CheckIncludeFile.c.obj
1> FAILED: CMakeFiles/cmTC_6c29b.dir/CheckIncludeFile.c.obj 
1> C:\PROGRA~2\MIB055~1\Preview\PROFES~1\VC\Tools\MSVC\1411~1.255\bin\HostX86\x64\cl.exe  /nologo   /DWIN32 /D_WINDOWS /W3    /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_6c29b.dir\CheckIncludeFile.c.obj /FdCMakeFiles\cmTC_6c29b.dir\ /FS -c CheckIncludeFile.c
1> CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
1> ninja: build stopped: subcommand failed.

This appears to be an issue with the CMake artifacts that come with VS's version of CMake. Anybody know of a workaround?

cmake and cmake tools extensions installed but not added to path

I have a fresh installation of vscode and installed the cmake and cmake tools extensions. When I run cmake: configure, I get the following error:
Bad CMake executable "". Is it installed or settings contain the correct path (cmake.cmakePath)?
When I try "cmake -version" in the terminal it appears it hasn't been loaded into environment variables path. Here's that error:
cmake : The term 'cmake' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1

  • cmake -version
  •   + CategoryInfo          : ObjectNotFound: (cmake:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

I can manually add it to my path environment variable but I have no idea where it's installed. Any help would be appreciated.
Thanks.

add_test parsing - a mysterious __ArgsSep__ appears

I am using visual studio 2019 (latest build - with cmake 3.14.4)
When using
cmd= python.exe;C:\Users\peter\proc.py;test_1;C:\Users\peter\foo.wav
add_test(NAME bla COMMAND ${cmd})
On Linux as well and in cmd.exe + powershell this makes the "bla" test run
python C:\Users\peter\proc.py test_1 C:\Users\peter\foo.wav

However in visual studio 2019 I get and error
Message: python.exe: can't open file 'C:\Users\peter\proc.py__ArgsSep__test_eq_1__ArgsSep__C:\Users\peter\foo.wav__ArgsSep': [Errno 2] No such file or directory

i.e. some odd voodoo replacement of the list spacer ";" into "_ _ ArgsSep _ _" goes really wrong (i.e. double underscore before and after the ArgsSep)

CMAKE_CXX_STANDARD is ignored when using clang-cl

When setting the following flags in CMakeSettings.json:
-DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_CXX_STANDARD=17

The /std:c++17 isn't appended to clang-cl's command line.

Even with set(CMAKE_CXX_STANDARD 17) in CMakeLists.txt, the flag still isn't correctly applied to clang-cl. The only way to enable the flag was explicitly with set(CMAKE_CXX_FLAGS "/std:c++17").

I'm using Visual Studio 15.8.9 (CMake version 3.11.18040201-MSVC_2). If I generate a Ninja build with CMake 3.12.3 then the flag is correctly appended, so it's either been fixed in upstream, or it's unique to the Microsoft fork.

CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS breaks UWP arm builds

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) will break UWP arm builds. The export tool used by cmake only seems to support x86 and x64 obj files and cannot parse arm obj files.

For example, the vcpkg project uses CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS to generate the export symbols for freetype. All builds work except for UWP arm builds. cmake.exe is not able to parse the arm object files.

https://github.com/Microsoft/vcpkg/blob/master/ports/freetype/0001-Support-Windows-DLLs-via-CMAKE_WINDOWS_EXPORT_ALL_SY.patch

Here is a description of the CMAKE_WINDOWS_EXPORT_ALL_SY feature:

https://blog.kitware.com/create-dlls-on-windows-without-declspec-using-new-cmake-export-all-feature/

https://cmake.org/cmake/help/git-master/prop_tgt/WINDOWS_EXPORT_ALL_SYMBOLS.html

Generation fails for Windows SDK 10

Installed:

  1.        VS2015 Preview CTP6 (C:\Program Files (x86)\Windows Kits\10 created during installation)
    
  2.        Windows 8.1 SDK
    
  3.        VS2013 Express for Desktop
    
  4.        CMake (branch feature/Win10)
    
  5.        Git for Windows (MSYS)
    

Running of the command for CMake-based project:

bin> ..\..\CMake\bin\bin\Release\cmake.exe -G "Visual Studio 14 2015 Win64" -DCMAKE_SYSTEM_NAME:String=WindowsStore -DCMAKE_SYSTEM_VERSION:String="10.0" -DCMAKE_VS_EFFECTIVE_PLATFORMS:String=x64 -DCMAKE_INSTALL_PREFIX:PATH=C:\Users\install ..

causes error.

CMakeOutput.log:

The target system is: WindowsStore - 10.0 - 
The host system is: Windows - 6.2 - AMD64
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler:  
Build flags: 
Id flags: 

The output was:
0
Microsoft (R) Build Engine version 14.0.22609.0
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 4/1/2015 7:28:06 AM.
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (60,11)" does not exist in the project, and will be ignored.
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (108,11)" does not exist in the project, and will be ignored.
Project "C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\3.2.1\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\".
  Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
  Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue CMakeCXXCompilerId.cpp
  CMakeCXXCompilerId.cpp
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X86 /SAFESEH Debug\CMakeCXXCompilerId.obj
  CompilerIdCXX.vcxproj -> C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\3.2.1\CompilerIdCXX\.\CompilerIdCXX.exe
PostBuildEvent:
  for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
  :VCEnd
  CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe
FinalizeBuildStatus:
  Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
  Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
Done Building Project "C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\3.2.1\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.38


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"

The CXX compiler identification is MSVC, found in "C:/Users/Evgeny/Documents/opencv/bin/CMakeFiles/3.2.1/CompilerIdCXX/CompilerIdCXX.exe"

Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:  
Build flags: 
Id flags: 

The output was:
0
Microsoft (R) Build Engine version 14.0.22609.0
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 4/1/2015 7:28:07 AM.
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (60,11)" does not exist in the project, and will be ignored.
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (108,11)" does not exist in the project, and will be ignored.
Project "C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\3.2.1\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\".
  Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
  Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue CMakeCCompilerId.c
  CMakeCCompilerId.c
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X86 /SAFESEH Debug\CMakeCCompilerId.obj
  CompilerIdC.vcxproj -> C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\3.2.1\CompilerIdC\.\CompilerIdC.exe
PostBuildEvent:
  for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
  :VCEnd
  CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe
FinalizeBuildStatus:
  Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
  Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
Done Building Project "C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\3.2.1\CompilerIdC\CompilerIdC.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.53

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"

The C compiler identification is MSVC, found in "C:/Users/Evgeny/Documents/opencv/bin/CMakeFiles/3.2.1/CompilerIdC/CompilerIdC.exe"

CMakeError.log:

Determining if the CXX compiler works failed with the following output:
Change Dir: C:/Users/Evgeny/Documents/opencv/bin/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTryCompileExec4099276181.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.22609.0

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 4/1/2015 7:28:10 AM.

Project "C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\CMakeTmp\cmTryCompileExec4099276181.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTryCompileExec4099276181.dir\Debug\".

  Creating directory "C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTryCompileExec4099276181.dir\Debug\cmTryCom.B8E169EC.tlog\".

  Creating directory "Generated Files\".

GetInstalledSDKLocations:

  Searching for SDKs targeting "Windows, 8.1".

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(2005,5): error MSB3774: Could not find SDK "Microsoft.VCLibs.AppLocal, Version=14.0". [C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\CMakeTmp\cmTryCompileExec4099276181.vcxproj]

Done Building Project "C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\CMakeTmp\cmTryCompileExec4099276181.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\CMakeTmp\cmTryCompileExec4099276181.vcxproj" (default target) (1) ->

(ResolveSDKReferences target) -> 

  C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(2005,5): error MSB3774: Could not find SDK "Microsoft.VCLibs.AppLocal, Version=14.0". [C:\Users\Evgeny\Documents\opencv\bin\CMakeFiles\CMakeTmp\cmTryCompileExec4099276181.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.85

Tag versions shipped with VS

To aid in troubleshooting, it would be helpful if every version shipped with Visual Studio was tagged in the repository.

I'm honestly not sure if it would be a good idea to provide binaries or not, but it would presumably be easier not to do that.

VS_MOBILE_EXTENSIONS - missing PropertySheets in vcxproj

Hi, when I turn on VS_MOBILE_EXTENSIONS_VERSION cmake correctly generates ImportGroup element with ExtensionSDKLocation for WindowsMobile. This works fine and Extension shows up in Visual Studio, but I cannot include any of header file from this SDK extension.
If I remove extension in VS and add it back, then all includes works. I noticed that vcxproj has slight difference - Cmake generated file does not have PropertySheet with SDKExtensionDirectoryRoot.
See cmake-generated.vcxproj.txt and VS-generated.vcxproj.txt

Maybe I did something wrong, but there is no "SDKExtensionDirectoryRoot" string in cmake sources, so I guess it can't work anyway.

Proper VS_WINRT_REFERENCES for Microsoft.Advertising.winmd?

I'm trying to add the MSFT ad mediation SDK to our game. I can't seem to figure out the correct way to set VS_WINRT_REFERENCES. Or maybe I found a bug/limitation. If I manually add a reference to "Ad Mediator SDK for Windows 8.1 XAML" Version=1.0 everything works.

I've tried setting it to the .winmd file, full path or partial path. I've tried setting it to the per-architecture .dll file. The closest I've ever gotten was it compiled but upon running there was a ClassNotRegisteredException trying to use the sdk classes.

Anyone have any good thoughts?

CMake target Windows Phone Visual Studio 2015

I'm not sure if this is the right place to request this feature, but currently the official CMake is unable to generate VS Projects targeting Windows Phone for Visual Studio 2015.

cannot find -lversion

Platform Ubuntu 18.04

I've installed prerequisites:

sudo apt install -y openssh-server build-essential gdb zip

I have installed the cmake from here:

wget chmod +x https://github.com/microsoft/CMake/releases/download/v3.16.3311152/cmake-3.16.3311152-MSVC_2-Linux-x64.sh
chmod +x cmake-3.16.3311152-MSVC_2-Linux-x64.sh
sudo ./cmake-3.16.3311152-MSVC_2-Linux-x64.sh --skip-license --prefix=/usr/local

And I got this error building with cmake

/usr/bin/ld: cannot find -lversion
collect2: error: ld returned 1 exit status
MyExe/CMakeFiles/MyExe.dir/build.make:101: recipe for target '../x64/Release/MyExe' failed
make[2]: *** [../x64/Release/MyExe] Error 1
CMakeFiles/Makefile2:136: recipe for target 'MyExe/CMakeFiles/MyExe.dir/all' failed
make[1]: *** [MyExe/CMakeFiles/MyExe.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I can see in the link.txt this which is making use of -lversion

/usr/bin/c++  -g   CMakeFiles/MyExe.dir/stdafx.cpp.o CMakeFiles/MyExe.dir/MyExe.cpp.o  -o ../../x64/Debug/MyExe  ../../x64/Debug/libMyExeCore.a ../../x64/Debug/libCashFlowEngineReports.a -lversion 

what do I do wrong here?

Generation fails for Windows Universal after VS 2015 update.

Hi!
I updated Visual Studio 2015 RC to release version (and Win10 SDK too) and cmake now fails to generate projects for WindowsStore == 10.0.
I compared old generated (with RC) project and project from release VS project templates. I found a few different places: 'ApplicationTypeRevision' in release is 10.0 (vs old 8.2). 'WindowsTargetPlatformVersion' and 'WindowsTargetPlatformMinVersion' fields in old project are missed.
I'll try to fix this issues and write about result.

Generation Fails in VS 2015 Express for Windows 10

Hi,
there is a problem with project generation in Express Studio for Windows 10. Manifest validation expects 44px app icon, but there is only 30px.

D:\builds\v140-win10-devel\CMakeFiles\CMakeTmp\cmTC_9ca43.dir\package.appxManifest(27,5):
  error APPX1619: App manifest references the small logo image
  'cmTC_9ca43.dir\SmallLogo.png' which does not have valid dimensions.  It
  must be 44x44 pixels.
  [D:\builds\v140-win10-devel\CMakeFiles\CMakeTmp\cmTC_9ca43.vcxproj]

  Done Building Project
  "D:\builds\v140-win10-devel\CMakeFiles\CMakeTmp\cmTC_9ca43.vcxproj"
  (default targets) -- FAILED.

Seriously?

I know you suffer from a company-wide Not Invented Here syndrome. But maintaining your own version of CMake is braindead practice. Especially when it is equivalent to the 3.13.x of the official branch, and hence does not actually support Visual Studio 2019 generators which have been added in 3.14.x. And you are distributing it with Visual Studio 2019. Your own CMake version, which is distributed with Visual Studio 2019, does not support Visual Studio 2019. I had to:

ren "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake" _CMake
mklink /d "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake" "C:\Program Files\CMake"

in order to replace it with my official 3.14.x instance to get cmake projects to work in Visual Studio 2019.

The visual studio 2022 Infobar can not deploy CMake automatically on WSL:Ubuntu.

I follow the instructions here.

After I created a CMake project which named "hello1"
The CMake Output:
The remote system does not have CMake 3.8 or greater. An infobar to automatically deploy CMake to the remote system will be displayed if you are building on a supported architecture. See https://aka.ms/linuxcmakeconfig for more info

The visual studio infobar tips me:
Supprted CMake version is not present on "WSL:Ubuntu".Install latest CMake binaries from CMake.org? Yes No

after selected yes, and wait a moment, the cross platform logging output the following,

22:02:56.2620768 [Info, Thread 51]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.WaitableIndexService: WaitableIndexService changed to FileScanning from FileSystem
22:02:58.4603354 [Info, Thread 39]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.ConfigurationService: ConfigSwitched Initial config switch to linux-default
22:02:58.4883060 [Warning, Thread 50]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.UI.CachedBuildProjects: SwitchToPurgingState due to error CreationTimeUtc:2021/11/25 10:41:18 Workspace open:2021/11/25 14:02:52
22:02:58.4933083 [Info, Thread 50]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: Rehydrating projects for 1 VBP Waiting:linux-default HasData: HasError:
22:02:58.5063414 [Info, Thread 39]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: Starting scan ...
22:02:59.0343057 [Info, Thread 39]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.ParseCache: CancelOldTasksAsync: Canceling old tasks for rootFile='CMakeLists.txt' and config='linux-default'.
22:02:59.0443069 [Info, Thread 46]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: Scanner Parsing starting: projectfilepath CMakeLists.txt FileScanType: System.Collections.Generic.IReadOnlyDictionary`2[System.Type,System.Object] Config Name:linux-default
22:02:59.1343059 [Info, Thread 6]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: OnFileScannerCompleted for out\build\windows-default\CMakeFiles\3.21.21080301-MSVC_2\CMakeCXXCompiler.cmake
22:02:59.1343059 [Info, Thread 44]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: OnFileScannerCompleted for out\build\windows-default\CMakeFiles\3.21.21080301-MSVC_2\CMakeCCompiler.cmake
22:02:59.1373072 [Info, Thread 45]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: OnFileScannerCompleted for out\build\windows-default\cmake_install.cmake
22:02:59.1483072 [Info, Thread 56]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: OnFileScannerCompleted for out\build\windows-default\CMakeFiles\3.21.21080301-MSVC_2\CMakeRCCompiler.cmake
22:02:59.1483072 [Info, Thread 44]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: OnFileScannerCompleted for out\build\windows-default\CMakeFiles\3.21.21080301-MSVC_2\CMakeSystem.cmake
22:02:59.1513119 [Info, Thread 6]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: OnFileScannerCompleted for out\build\windows-default\hello1\cmake_install.cmake
22:02:59.3133038 [Info, Thread 52]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.ParseCache: CacheGenerationStarted root: CMAKELISTS.TXTlinux-default CMakeLists.txt linux-default
22:02:59.3493078 [Info, Thread 12]	Microsoft.VisualStudio.CMake.Linux.Project.RemoteCMakeParser: RemoteCMakeParser ctor
22:02:59.3503067 [Info, Thread 12]	libcmake.Linux.RemoteCMakeParser: RemoteCMakeParser ctor
22:02:59.3513068 [Info, Thread 12]	Microsoft.VisualStudio.CMake.Linux.Project.RemoteCMakeParser: RemoteCMakeParser finished
22:02:59.5403050 [Info, Thread 12]	libcmake.Linux.RemoteCMakeUtils: RemoteCMakeCopyFilesStarted Copying source directory 'C:\Users\zzg\Documents\WorkCenter\cppprojects\hello1\' to destination directory '/home/tet/.vs/hello1' on '' (method=rsync).
22:02:59.7563098 [Info, Thread 6]	libcmake.Linux.IO.DirectoryScan: Scan time: 9
22:02:59.7633146 [Info, Thread 6]	libcmake.Linux.IO.DirectoryScan: Compare time: 4
22:03:02.5860626 [Info, Thread 43]	libcmake.Linux.RemoteCMakeUtils: RemoteCMakeCopyFilesFinished Finished copying files (elapsed time 00h:00m:02s:910ms).
22:03:02.7107202 [Info, Thread 44]	libcmake.Linux.RemoteCMakeParser: ParseAsync
22:03:02.7187458 [Info, Thread 6]	libcmake.Linux.RemoteCMakeParser: CreateCMakeDaemonAsync
22:03:02.7207459 [Info, Thread 6]	libcmake.Linux.RemoteCMakeParameters: Connecting to the remote system
22:03:02.8176466 [Info, Thread 6]	libcmake.Linux.RemoteCMakeParameters: Connected to the remote system
22:03:02.9006413 [Error, Thread 52]	Microsoft.VisualStudio.CMake.Project.ExternalBuildProject.ProjectProvider: libcmake.CMakeDaemonUnsupportedException: CMake executable could not be found: cmake does not exist or is not a regular file.
The remote system does not have CMake 3.8 or greater. An infobar to automatically deploy CMake to the remote system will be displayed if you are building on a supported architecture. See https://aka.ms/linuxcmakeconfig for more info.
   at libcmake.Linux.RemoteCMakeParameters.<InitializeAsync>d__61.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at libcmake.Linux.RemoteCMakeParser.<CreateCMakeDaemonAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at libcmake.CMakeListsParser.<ParseImplAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at libcmake.Linux.RemoteCMakeParser.<ParseAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.CMake.Linux.Project.RemoteCMakeParser.<ParseAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.VisualStudio.CMake.Linux.Project.RemoteCMakeParser.<ParseAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.TaskStatusCenter.TaskStatusCenterModel.<>c__DisplayClass40_0.<<LogTelemetryOnTaskFailure>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.CMake.Project.ExternalBuildProject.ProjectProvider.<ParseProjectAsync>d__33.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.CMake.Project.ExternalBuildProject.ProjectProvider.<ParseProjectAsync>d__33.MoveNext()
22:03:02.9116440 [Info, Thread 52]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.ParseCache: CacheGenerationFinished Cache gen & parsing done: root:CMAKELISTS.TXTlinux-default CMakeLists.txt linux-default
22:03:02.9266394 [Info, Thread 10]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: Scanner Parsing done: projectfilepath CMakeLists.txt FileScanType: System.Collections.Generic.IReadOnlyDictionary`2[System.Type,System.Object] Config Name:linux-default
22:03:02.9496574 [Info, Thread 10]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: Compute file data values for CMakeLists.txt Config linux-default
22:03:02.9540147 [Error, Thread 56]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: FDV Error for CMakeLists.txt Config linux-default Canceled False AutoGenerateCanceled False
22:03:02.9726532 [Info, Thread 52]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: OnFileScannerCompleted for CMakeLists.txt
22:03:02.9759579 [Info, Thread 52]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: Finishing scan.
22:03:02.9996397 [Info, Thread 52]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.BuildProjectScannerService: OnFileScannerTypeCompleted
22:03:03.0234013 [Info, Thread 51]	Microsoft.VisualStudio.Workspace.ExternalBuildFramework.Impl.Services.WaitableIndexService: WaitableIndexService changed to Completed from FileScanning
22:03:16.2832746 [Info, Thread 1]	Microsoft.VisualStudio.CMake.Linux.Project.RemoteCMakeDeploy: RemoteCMakeDeployStarted Remote CMake deployment to WSL: Ubuntu started.
22:04:56.3973785 [Info, Thread 1]	Microsoft.VisualStudio.CMake.Linux.Project.RemoteCMakeDeploy: RemoteCMakeDeployFinished Deployment failed.

The cross platform just tell "Deployment failed " in the last statement, but didn't tell why .
any geek can tell how to resolve this prob ?

crash on cmLocale.h

I'm trying to use Hunter package manager with Microsoft's CMake and get a crash when CMake tries to unpack hunter.
I've tracked down the crash to the destructor at cmLocale.h, which is caused because setlocale overrides OldLocale's contents.

I've noticed that upstream CMake already has a fix for this crash, so I'll open a PR with this fix.

GetWindows10SDKVersion failed to detect Windows 10 SDK

While I am testing latest feature/Win10 I have found GetWindows10SDKVersion always returns empty string on my Windows 10 Pro.

  • OS Name Microsoft Windows 10 Pro
  • Version 10.0.10240 Build 10240
  • Microsoft Visual Studio Community 2015 Version 14.0.23107.0 D14REL

I found that it failed at VerifyVersionInfo, because it seems VerifyVersionInfo accepts the number 6 or 10 depends on the Windows 10 build number. I'm not quite sure if it's a right solution or not, but I think we need to verify 10 or 6 to detect Windows 10.

FYI I managed to get it working locally,

-        if (VerifyVersionInfo(&osviex,
-          VER_MAJORVERSION | VER_MINORVERSION | VER_BUILDNUMBER,
-          dwlConditionMask))
+       auto verified = VerifyVersionInfo(&osviex,
+           VER_MAJORVERSION | VER_MINORVERSION /* | VER_BUILDNUMBER */,
+           dwlConditionMask);
+       // VerifyVersionInfo could accept 10 or 6 for major version on Windows 10
+       if (!verified && osviex.dwMajorVersion == 10) {
+           osviex.dwMajorVersion = 6;
+           verified = VerifyVersionInfo(&osviex,
+               VER_MAJORVERSION | VER_MINORVERSION /* | VER_BUILDNUMBER */,
+               dwlConditionMask);
+       }
+
+        if (verified)

Here's a link for the diff

VS toolset upgrade

After running of the following command:

bin> ..\..\CMake\bin\bin\Release\cmake.exe -G "Visual Studio 14 2015 Win64" -DCMAKE_SYSTEM_NAME:String=WindowsStore -DCMAKE_SYSTEM_VERSION:String="8.1" -DCMAKE_VS_EFFECTIVE_PLATFORMS:String=x64 -DCMAKE_INSTALL_PREFIX:PATH=C:\Users\install ..

and opening the resulting solution VS2015 suggests to upgrade CMake-related projects only (e. g. ALL_BUILD, INSTALL, etc.) others are still using vc120 toolset instead of vc140

Parameter name: pathValue cannot be null.

on generating CMake cache (doesn't matter Linux / Windows) multiple errors occurs...
Parameter name: pathValue cannot be null.
and CMake generation stops with error. On second call some messages also occurs but generation finished and build is possible.

1st call

1> Starting CMake target info extraction ...
1> CMake server connection made.
1> Extracted includes paths.
1> Extracted CMake variables.
1> Extracted source files and headers.
1> Extracted global settings.
1> Extracted code model.
1> Extracted CTest info.
1> Collating data ...
1> Target info extraction done.
Value cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: pathValue cannot be null.
Parameter name: path1> Command line: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\PREVIEW\PROFESSIONAL\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe -G "Ninja" -DCMAKE_INSTALL_PREFIX:PATH="C:\Git\IcxFlatbuffers\public\bin\win-msvc-x64\Release" -DCMAKE_CXX_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/VC/Tools/MSVC/14.13.26127/bin/HostX64/x64/cl.exe" -DCMAKE_C_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/VC/Tools/MSVC/14.13.26127/bin/HostX64/x64/cl.exe" -DCMAKE_TOOLCHAIN_FILE=C:\Git\DevTools/tool_cmake/addons/modulesX/Platform/win-msvc-x64.cmake -DMSC_REQ_ADAPTER=1 -DCMAKE_BUILD_TYPE="Release" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\PREVIEW\PROFESSIONAL\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Git\IcxFlatbuffers"
1> Working directory: C:\Git\IcxFlatbuffers\private\generated\win-msvc-x64\Release
1> CMake generation canceled.

2nd call

1> Starting CMake target info extraction ...
1> CMake server connection made.
1> Extracted includes paths.
1> Extracted CMake variables.
1> Extracted source files and headers.
1> Extracted global settings.
1> Extracted code model.
1> Extracted CTest info.
1> Collating data ...
1> Target info extraction done.
Value cannot be null.
Parameter name: path

VS2017 infos

Microsoft Visual Studio Professional 2017 Preview
Version 15.6.0 Preview 5.0
VisualStudio.15.Preview/15.6.0-pre.5.0+27413.0
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Professional

Visual C++ 2017 00369-60000-00001-AA634
Microsoft Visual C++ 2017

ASP.NET and Web Tools 2017 15.0.40213.0
ASP.NET and Web Tools 2017

C# Tools 2.7.0-beta3-62608-11. Commit Hash: 185540ca19bded1b976b61cc08973ca1135298d2
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

JavaScript Language Service 2.0
JavaScript Language Service

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package

NuGet Package Manager 4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

Visual Basic Tools 2.7.0-beta3-62608-11. Commit Hash: 185540ca19bded1b976b61cc08973ca1135298d2
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Linux Development 1.0.8
Visual C++ for Linux Development

Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake

Elf.h not found ??

When Trying to build Cmake for UWP with Cmake 3.7.1 I get issues as shown on this screenshot...

screenshot_4

Cmake cannot find Elf.h ? I found a similar file as cmELF.h ? Uhhh
Could you please give me your opinion about this error ?

CMake 3.21.0.rc2 seems not to work with vcpkg

We recently installed 3.21.0.rc2.
We noticed that this seems to cause issues with vcpkg.
If you run "vcpkg install catch2" or some other package instead of catch2 you get
Computing installation plan...
Then nothing happens no install occurs. If you're using Visual Studio vcpkg seems to crash also witout installing anything.
There is a Stackoverflow issue about this here https://stackoverflow.com/questions/68295156/why-vcpkg-cant-install-packages/68304117#68304117

Add C# Support

I know this is not a tiny feature to add, but I've been wanting it for years. I highly appreciate that Microsoft worked on providing proper CMake support for the Universal Windows Platform. I am now wondering, would it be possible to consider adding proper C# support as well? Please share your thoughts on the matter, I would be very interested in such a feature.

Clang/C2 Status

What is status of getting Clang/C2 merged into master of the fork and then pushed back upstream to kitware/cmake?

CMakeSettings.json: cmakeExecutable only working for remote machines

The property 'cmakeExecutable' is only working for remote machines.
As an user I want to define my own cmake version even on the local machine, because I want a newer version or I want to use my own settings.
The property 'cmakeExecutable' should also work for the local machine.

Microsoft Visual Studio Professional 2017 Preview
Version 15.6.0 Preview 2.0
VisualStudio.15.Preview/15.6.0-pre.2.0+27309.0

cmStringTable.cxx is missing

make: *** No rule to make target '/mnt/f/workspace/CMake/Source/cmStringTable.cxx', needed by 'cmStringTable.o'. Stop.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.