View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013291CMakeCMakepublic2012-06-11 09:582016-06-10 14:31
ReporterDimitri Merejkowsky 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformVisual StudioOSWindowsOS Version7
Product VersionCMake 2.8.8 
Target VersionFixed in Version 
Summary0013291: find_path(WIN32_INCLUDE_DIR windows.h) does not work with Visual Studio 10 generator
DescriptionUsing find_path to find headers from the Microsoft SDK does not work
when using the Visual Studio 10 generator.
Steps To ReproduceCMakeLists.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 InformationNote 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
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0030436)
David Cole (manager)
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 (administrator)
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.

 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


Copyright © 2000 - 2018 MantisBT Team