MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013291 | CMake | CMake | public | 2012-06-11 09:58 | 2016-06-10 14:31 |
| Reporter | Dimitri Merejkowsky | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | Visual Studio | OS | Windows | OS Version | 7 |
| Product Version | CMake 2.8.8 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0013291: find_path(WIN32_INCLUDE_DIR windows.h) does not work with Visual Studio 10 generator | ||||
| Description | Using find_path to find headers from the Microsoft SDK does not work when using the Visual Studio 10 generator. | ||||
| Steps To Reproduce | CMakeLists.txt looking like: cmake_minimum_required(VERSION 2.8.8) project(foo C) find_path(WIN32_INC windows.h) message(STATUS "WIN32_INC: ${WIN32_INC}") Ran from normal cmd.exe: > cmake .. -- Building for: Visual Studio 10 -- Check for working C compiler using: Visual Studio 10 -- Check for working C compiler using: Visual Studio 10 -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- WIN32_INC: WIN32_INC-NOTFOUND -- Configuring done -- Generating done -- Build files have been written to: C:/Users/dmerejkowsky/work/tmp/cmake_bug/b | ||||
| Additional Information | Note that this works when ran from Microsoft Visual Studio command prompt: > cmake -G "NMake Makefiles" .. -- The C compiler identification is MSVC 16.0.30319.1 -- Check for CL compiler version -- Check for CL compiler version - 1600 -- Check if this is a free VC compiler -- Check if this is a free VC compiler - no -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- WIN32_INC: C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/Include -- Configuring done -- Generating done -- Build files have been written to: C:/Users/dmerejkowsky/work/tmp/cmake_bug/b | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-06-11 09:58 | Dimitri Merejkowsky | New Issue | |||
| 2012-08-11 21:42 | David Cole | Status | new => backlog | ||
| 2012-08-11 21:42 | David Cole | Note Added: 0030436 | |||
| 2016-06-10 14:28 | Kitware Robot | Note Added: 0042063 | |||
| 2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||