[vtkusers] Fwd: [CMake] CMAKE_MAKE_PROGRAM is not set - Win7 and Visual Studio 10

Benoît Thiébault thiebault at artenum.com
Wed Dec 12 04:03:37 EST 2012


Hi everyone,

I sent this question on CMake mailing list a week ago and never had any answer.

As it deals with compiling VTK, I'm thinking maybe some of you have a solution.

Kind regards,

Benoît

Début du message réexpédié :

> De : Benoît Thiébault <thiebault at artenum.com>
> Date : 5 décembre 2012 14:21:23 HNEC
> À : cmake at cmake.org
> Objet : [CMake] CMAKE_MAKE_PROGRAM is not set - Win7 and Visual Studio 10
> 
> Hi everyone,
> 
> I am trying to compile VTK on Windows 7 64bits with Visual Studio 10.
> 
> But when I click on "configure" in CMake, it shows the following error message:
> 
> CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 10 Win64".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
> CMake Error: Could not find cmake module file:C:/Users/artenum/Downloads/vtk-5.8.0/build/CMakeFiles/2.8.10.2/CMakeCCompiler.cmake
> CMake Error: Could not find cmake module file:C:/Users/artenum/Downloads/vtk-5.8.0/build/CMakeFiles/2.8.10.2/CMakeCXXCompiler.cmake
> Configuring incomplete, errors occurred!
> 
> I looked at the CMakeVS10FindMake.cmake file located in C:\Program Files (x86)\CMake 2.8\share\cmake-2.8\Modules and found the following command:
> 
> find_program(CMAKE_MAKE_PROGRAM
>  NAMES devenv
>  HINTS
>  [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0\\Setup\\VS;EnvironmentDirectory]
>  [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0\\Setup;Dbghelp_path]
>  "$ENV{ProgramFiles}/Microsoft Visual Studio 10.0/Common7/IDE"
>  "$ENV{ProgramFiles}/Microsoft Visual Studio10.0/Common7/IDE"
>  "$ENV{ProgramFiles}/Microsoft Visual Studio 10/Common7/IDE"
>  "$ENV{ProgramFiles}/Microsoft Visual Studio10/Common7/IDE"
>  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10.0/Common7/IDE"
>  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio10.0/Common7/IDE"
>  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10/Common7/IDE"
>  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio10/Common7/IDE"
>  "/Program Files/Microsoft Visual Studio 10.0/Common7/IDE/"
>  "/Program Files/Microsoft Visual Studio 10/Common7/IDE/"
>  )
> 
> Here a copy/paste of the path of my Visual Studio 10 installation (and in particular the IDE folder):
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
> 
> I should add that my Windows 7 installation is in French. This means that the "Program Files" folder is named "Programmes" (in French) but "Progam Files (x86)" is in english.
> 
> I have added the two following lines in the command to be sure, but it still does not work:
> "/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/"
> "/Program Files (x86)/Microsoft Visual Studio 10/Common7/IDE/"
> 
> What should I do?
> 
> Kind regards,
> 
> Ben 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121212/6efcf475/attachment.htm>


More information about the vtkusers mailing list