View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012422CMake(No Category)public2011-08-26 05:252016-06-10 14:31
ReporterVaclav Uher 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformMS WindowsOSWindows 7OS Version
Product VersionCMake 2.8.4 
Target VersionFixed in Version 
Summary0012422: cmake is unable to generate valid solution for Visual Studio 2010
DescriptionWhen there are two versions of Visual Studio (tested only 2005 and 2010) then the generating of cmake cache loads invalid environment variables and uses the nmake of the older studio
Steps To ReproduceInstall Cmake 2.8.4, Visual Studio 2005 and VS 2010
generate initial cache from a file:
cmake -G "Visual Studio 10" -C initial-cache.txt ..\..\src\internal

result :
generating is done for VS 2010 but environment is loaded from VS 2005
loading initial cache file initial-cache.txt
-- 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
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - not found.
-- Found Threads: TRUE
Setting environment for using Microsoft Visual Studio 2005 x86 tools.

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.

'messages.rc' is up-to-date
-- Configuring done
-- Generating done
-- Build files have been written to: C:/develop/libs/HEAD/Build10/internal

Additional Informationan option for setting up of nmake path will be really helpful to set the environment properly even if there is more than one VS installed
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0029392)
sobigboy (reporter)
2012-05-02 18:02

Not sure if this is related, but this same error is occurring on Solaris 5.10 using cmake CMake 2.8.7 when executing find_package(Threads):

Looking for include files CMAKE_HAVE_PTHREAD_H - not found
Could NOT find Threads (missing: Threads_FOUND)
(0030415)
David Cole (manager)
2012-08-11 21:35

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.
(0041891)
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
2011-08-26 05:25 Vaclav Uher New Issue
2012-05-02 18:02 sobigboy Note Added: 0029392
2012-08-11 21:35 David Cole Status new => backlog
2012-08-11 21:35 David Cole Note Added: 0030415
2016-06-10 14:28 Kitware Robot Note Added: 0041891
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