Re: [CMake] Visual Studio 10 property pages for single source file gone with CMake 2.8.5 and 2.8.6

2011-11-11 Thread Niels Dekker - address until 2014
Update: I think users can work around this issue (#12570, empty property 
pages in VS10), by having the directory where to build the binaries on a 
separate drive (different from the drive that has the source files).


Please let me know if you think that's not a good idea! Or if it does not 
work on your VS10 installation!


- Original Message - 
From: Niels Dekker - address until 2014

To: cmake at cmake.org
Sent: Thursday, November 10, 2011 17:29
Subject: Re: [CMake] Visual Studio 10 property pages for single source file 
gone with CMake 2.8.5 and 2.8.6



Thanks for your feedback so far on this subject. I have just reported the
issue:

 0012570: VS10 property pages for single source file gone
 http://public.kitware.com/Bug/view.php?id=12570

If you have any more comment or suggestion, please feel free to add a note
to the report! A patch is highly appreciated, of course  :-)

Kind regards,

  Niels
--
Niels Dekker
http://www.xs4all.nl/~nd/dekkerware
Scientific programmer at LKEB, Leiden University Medical Center 


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Visual Studio 10 property pages for single source file gone with CMake 2.8.5 and 2.8.6

2011-11-11 Thread Mateusz Łoskot
Separate drive may not be an option for some/many.
I, for instance, don't use partitions, but I use
CMakeas as main builder for my projects.
So, I feel the pain of reloading, thus
It's easier/quicker for me to close solution, rerun CMake,
reopen solution.

-- 
Mateusz Łoskot
Sent from my mobile (excuse me for not quoting or top-posting possible)
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Visual Studio 10 property pages for single source file gone with CMake 2.8.5 and 2.8.6

2011-11-11 Thread Niels Dekker - address until 2014

Update: I think users can work around this issue (#12570, empty
property pages in VS10), by having the directory where to build the
binaries on a separate drive (different from the drive that has the
source files).


Mateusz Loskot wrote:

Separate drive may not be an option for some/many.
I, for instance, don't use partitions, but I use
CMakeas as main builder for my projects.


In order to work around http://public.kitware.com/Bug/view.php?id=12570 I 
think it should be sufficient to have a different drive *letter* when 
specifying where to build the binaries than the drive letter(s) of the path 
names of the source files. So I guess one might work around this issue by 
mapping a new drive letter to the build/bin directory, even while this 
directory might be located at the same physical drive as the source files. 
Right?


Kind regards,

  Niels
--
Niels Dekker
http://www.xs4all.nl/~nd/dekkerware
Scientific programmer at LKEB, Leiden University Medical Center 


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Visual Studio 10 property pages for single source file gone with CMake 2.8.5 and 2.8.6

2011-11-11 Thread John Drescher
 In order to work around http://public.kitware.com/Bug/view.php?id=12570 I
 think it should be sufficient to have a different drive *letter* when
 specifying where to build the binaries than the drive letter(s) of the path
 names of the source files. So I guess one might work around this issue by
 mapping a new drive letter to the build/bin directory, even while this
 directory might be located at the same physical drive as the source files.
 Right?


You could also probably use the subst command to substitute the root drive.

John
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Visual Studio 10 property pages for single source file gone with CMake 2.8.5 and 2.8.6

2011-11-11 Thread Niels Dekker - address until 2014

In order to work around
http://public.kitware.com/Bug/view.php?id=12570 I think it should be
sufficient to have a different drive *letter* when specifying where
to build the binaries than the drive letter(s) of the path names of
the source files.


John Drescher wrote:

You could also probably use the subst command to substitute the
root drive.


Thanks, John. My build/bin directory is at D:\Build. When I do 'subst B: 
D:\', and open a VS10 .sln file from B:\Build, Visual Studio 2010 allows me 
to view the C/C++ properties of individual source files. Cool! I think I'll 
add 'subst B: D:\' to my system startup  :-)


Kind regards,

  Niels
--
Niels Dekker
http://www.xs4all.nl/~nd/dekkerware
Scientific programmer at LKEB, Leiden University Medical Center 


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Visual Studio 10 property pages for single source file gone with CMake 2.8.5 and 2.8.6

2011-11-11 Thread Mateusz Łoskot
On 11 November 2011 13:54, Niels Dekker - address until 2014
niels_dekker_address_until_2...@xs4all.nl wrote:
 Update: I think users can work around this issue (#12570, empty
 property pages in VS10), by having the directory where to build the
 binaries on a separate drive (different from the drive that has the
 source files).

 Mateusz Loskot wrote:

 Separate drive may not be an option for some/many.
 I, for instance, don't use partitions, but I use
 CMakeas as main builder for my projects.

 In order to work around http://public.kitware.com/Bug/view.php?id=12570 I
 think it should be sufficient to have a different drive *letter* when
 specifying where to build the binaries than the drive letter(s) of the path
 names of the source files. So I guess one might work around this issue by
 mapping a new drive letter to the build/bin directory, even while this
 directory might be located at the same physical drive as the source files.
 Right?

I guess it's feasible.
I'll try this approach when I have a free moment. Thanks.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Visual Studio 10 property pages for single source file gone with CMake 2.8.5 and 2.8.6

2011-11-10 Thread Niels Dekker - address until 2014
When Visual Studio 10 vcxproj files are generated by CMake 2.8.5 or 2.8.6, 
it is typically impossible to view the C/C++ properties of a single source 
file. CMake 2.8.0 to 2.8.4 do not seem to have this issue. It looks like the 
issue is caused by the fact that CMake 2.8.5 started storing the absolute 
path names of the source files (even when CMAKE_USE_RELATIVE_PATHS is ON).


Is that a known issue?

Visual Studio 10 does not allow viewing the C/C++ properties of source files 
that are listed by their absolute path names. See VS10 bug report 635294, 
Using absolute path in ClCompile item prevents property pages from 
showing, by Niels M Hansen, 1/9/2011: 
https://connect.microsoft.com/VisualStudio/feedback/details/635294/using-absolute-path-in-clcompile-item-prevents-property-pages-from-showing


However, it seems like Visual Studio 10 *does* correctly support absolute 
path names *without* drive letter! Would it be possible for CMake to write 
the source file names *without* the drive letter, when it generates Visual 
Studio 10 vcxproj files? (Especially when the generated vcxproj files are 
located at the same drive as the source files.)


Kind regards,

  Niels
--
Niels Dekker
http://www.xs4all.nl/~nd/dekkerware
Scientific programmer at LKEB, Leiden University Medical Center 


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Visual Studio 10 property pages for single source file gone with CMake 2.8.5 and 2.8.6

2011-11-10 Thread Domagoj Saric

On 10.11.2011. 16:14, Niels Dekker - address until 2014 wrote:

When Visual Studio 10 vcxproj files are generated by CMake 2.8.5 or 2.8.6, it is
typically impossible to view the C/C++ properties of a single source file.


+1!

Thanks Niels for researching and reporting this one (I thought no one noticed 
it ;)


--
What Huxley teaches is that in the age of advanced technology, spiritual
devastation is more likely to come from an enemy with a smiling face than
from one whose countenance exudes suspicion and hate.
Neil Postman
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Visual Studio 10 property pages for single source file gone with CMake 2.8.5 and 2.8.6

2011-11-10 Thread J Decker
On Thu, Nov 10, 2011 at 7:14 AM, Niels Dekker - address until 2014
niels_dekker_address_until_2...@xs4all.nl wrote:
 When Visual Studio 10 vcxproj files are generated by CMake 2.8.5 or 2.8.6,
 it is typically impossible to view the C/C++ properties of a single source
 file. CMake 2.8.0 to 2.8.4 do not seem to have this issue. It looks like the
 issue is caused by the fact that CMake 2.8.5 started storing the absolute
 path names of the source files (even when CMAKE_USE_RELATIVE_PATHS is ON).

 Is that a known issue?

 Visual Studio 10 does not allow viewing the C/C++ properties of source files
 that are listed by their absolute path names. See VS10 bug report 635294,
 Using absolute path in ClCompile item prevents property pages from
 showing, by Niels M Hansen, 1/9/2011:
 https://connect.microsoft.com/VisualStudio/feedback/details/635294/using-absolute-path-in-clcompile-item-prevents-property-pages-from-showing

 However, it seems like Visual Studio 10 *does* correctly support absolute
 path names *without* drive letter! Would it be possible for CMake to write
 the source file names *without* the drive letter, when it generates Visual
 Studio 10 vcxproj files? (Especially when the generated vcxproj files are
 located at the same drive as the source files.)


I ran into this last night; but it wasn't all source files, just the
ones I had copied.  I even tried moving them into directories without
strange characters, and even back to the same source drive, but still
couldn't get the property pages.   But only on the souce files that
were .cpp the originals were .c and worked fine.  (A large portion of
sources I copy from .c to .cpp so I can build as both C and C++
seperately).  All of the .cpp files would not let me bring up
properties.  I manually copied one of the files and added that to the
++ project, and was able to bring up properties.  I was unable to
track down what exactly the problem was with the other sources.  They
were exactly like the .cpp that I had manually copied but they would
not allow me to open property pages.  This is 2.8.6-rc2.

 Kind regards,

  Niels
 --
 Niels Dekker
 http://www.xs4all.nl/~nd/dekkerware
 Scientific programmer at LKEB, Leiden University Medical Center
 --

 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the CMake FAQ at:
 http://www.cmake.org/Wiki/CMake_FAQ

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Visual Studio 10 property pages for single source file gone with CMake 2.8.5 and 2.8.6

2011-11-10 Thread Niels Dekker - address until 2014
Thanks for your feedback so far on this subject. I have just reported the 
issue:


 0012570: VS10 property pages for single source file gone
 http://public.kitware.com/Bug/view.php?id=12570

If you have any more comment or suggestion, please feel free to add a note 
to the report! A patch is highly appreciated, of course  :-)


Kind regards,

  Niels
--
Niels Dekker
http://www.xs4all.nl/~nd/dekkerware
Scientific programmer at LKEB, Leiden University Medical Center 


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake