MantisBT - CMake
View Issue Details
0012422CMake(No Category)public2011-08-26 05:252016-06-10 14:31
Vaclav Uher 
Kitware Robot 
normalminoralways
closedmoved 
MS WindowsWindows 7
CMake 2.8.4 
 
0012422: cmake is unable to generate valid solution for Visual Studio 2010
When 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
Install 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

an 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
No tags attached.
Issue History
2011-08-26 05:25Vaclav UherNew Issue
2012-05-02 18:02sobigboyNote Added: 0029392
2012-08-11 21:35David ColeStatusnew => backlog
2012-08-11 21:35David ColeNote Added: 0030415
2016-06-10 14:28Kitware RobotNote Added: 0041891
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
(0029392)
sobigboy   
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   
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   
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.