MantisBT - CMake
View Issue Details
0013291CMakeCMakepublic2012-06-11 09:582016-06-10 14:31
Dimitri Merejkowsky 
Kitware Robot 
normalminoralways
closedmoved 
Visual StudioWindows7
CMake 2.8.8 
 
0013291: find_path(WIN32_INCLUDE_DIR windows.h) does not work with Visual Studio 10 generator
Using find_path to find headers from the Microsoft SDK does not work
when using the Visual Studio 10 generator.
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


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
No tags attached.
Issue History
2012-06-11 09:58Dimitri MerejkowskyNew Issue
2012-08-11 21:42David ColeStatusnew => backlog
2012-08-11 21:42David ColeNote Added: 0030436
2016-06-10 14:28Kitware RobotNote Added: 0042063
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0030436)
David Cole   
2012-08-11 21:42   
Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0042063)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.