[CMake] Problems with the "INSTALL" sub-project on Visual Studio 2003

Michael Hufer Michael.Hufer at swissrisk.com
Tue Nov 7 05:13:14 EST 2006


Hi all,
I have a problem making the "INSTALL"-project work inside Visual Studio .NET 
2003. If I "Build" the INSTALL-project inside the IDE nothing is installed 
(and it also looks like no command is actually executed) but the IDE 
proclaims success. The output of the IDE is:
---
------ Build started: Project: INSTALL, Configuration: Debug Win32 ------




---------------------- Done ----------------------

    Build: 1 succeeded, 0 failed, 0 skipped
---
If I run the "Post Build Event"command (the only obviously visible command in 
the INSTALL sub-project of the complete solution)
---
"C:\Programme\CMake 2.4\bin\cmake.exe" -DBUILD_TYPE=$(OutDir) -P 
cmake_install.cmake
---
(where i substitute "Debug" for "$(OutDir)") manually in a "cmd" shell in the 
build directory it works and the solution is installed - the way I expect it 
to be.
Is this a bug in the CMake generated INSTALL sub-project?
Or in Visual Studio .NET 2003 (with SP1!) ?
Or am I doing something wrong here? Thought, the command supposedly executed 
as "post build" command in the IDE works in the shell so this cannot be, 
can't it?
I would expect the IDE to run the "Pre Build Event" (which is empty) then 
build the project (which is also empty) and then run the "Post Build 
Event"... 
Hmm... now that I think more about it, since there is nothing to build why 
should the IDE execute the Post Build Event, anyway? 

	Micha.
-- 
Michael Hufer        | EMail: mailto:Michael.Hufer at swissrisk.com
Software Developer   | WWW:   http://www.swissrisk.com
SWISSRISK AG         | Phone: ++49 69 50952 - 0


More information about the CMake mailing list