Re: [CMake] MSVC_VERSION for VC11?

2012-03-06 Thread Robert Dailey
I actually need to check the compiler version for ABI compatibility
reasons. I download my third party libraries via CMake script and I check
the current compiler version so I know which DLLs to download :P

Unfortunately C++ name mangling is not standardized so this is necessary.

Also it is quite possible to have the pimpl pattern in my code base,
designed in such a way that different CPP files are included in my targets
depending on compiler version. It's a way to abstract away
platform-specific and compiler-specific implementation details (Perhaps I
use MSVC-specific extensions in my pimpl class, or maybe I do some inline
assembler to overcome a specific optimization failure or inefficiency in
older versions of MSVC).

Need more examples? :P

-
Robert Dailey


On Mon, Mar 5, 2012 at 3:25 PM, Eric Noulard eric.noul...@gmail.com wrote:

 2012/3/5 Robert Dailey rcdai...@gmail.com:
  The docs aren't updated to reflect this so I just wanted to make sure.

 Patch for documentation may be accepted as well :-]

  I didn't have time to run through the source code (you Linux people and
 your
  fancy 'git grep' commands :P )

 You Windows people and your need to check compiler version before trying
 to compile a portable piece of code :P !!


 --
 Erk
 Le gouvernement représentatif n'est pas la démocratie --
 http://www.le-message.org

--

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] MSVC_VERSION for VC11?

2012-03-05 Thread Robert Dailey
I'm assuming MSVC_VERSION will be 1700 for MSVC11. Is this correct?

-
Robert Dailey
--

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] MSVC_VERSION for VC11?

2012-03-05 Thread David Cole
Correct. Partial output from 'git grep MSVC_VERSION' in the CMake source tree:

$ git grep MSVC_VERSION
...
Modules/CMakeVS10FindMake.cmake:SET(MSVC_VERSION 1600)
Modules/CMakeVS11FindMake.cmake:SET(MSVC_VERSION 1700)
Modules/CMakeVS6FindMake.cmake:SET(MSVC_VERSION 1200)
Modules/CMakeVS71FindMake.cmake:SET(MSVC_VERSION 1310)
Modules/CMakeVS7FindMake.cmake:SET(MSVC_VERSION 1300)
Modules/CMakeVS8FindMake.cmake:SET(MSVC_VERSION 1400)
Modules/CMakeVS9FindMake.cmake:SET(MSVC_VERSION 1500)
...


On Mon, Mar 5, 2012 at 12:40 PM, Robert Dailey rcdai...@gmail.com wrote:
 I'm assuming MSVC_VERSION will be 1700 for MSVC11. Is this correct?

 -
 Robert Dailey

 --

 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] MSVC_VERSION for VC11?

2012-03-05 Thread Eric Noulard
2012/3/5 Robert Dailey rcdai...@gmail.com:
 The docs aren't updated to reflect this so I just wanted to make sure.

Patch for documentation may be accepted as well :-]

 I didn't have time to run through the source code (you Linux people and your
 fancy 'git grep' commands :P )

You Windows people and your need to check compiler version before trying
to compile a portable piece of code :P !!


-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
--

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] MSVC_VERSION for VC11?

2012-03-05 Thread Andreas Pakulat
On 05.03.12 14:14:13, Robert Dailey wrote:
 The docs aren't updated to reflect this so I just wanted to make sure. I
 didn't have time to run through the source code (you Linux people and your
 fancy 'git grep' commands :P )

You know git including git grep also works on windows (and no I'm not
talking about cygwin).

Andreas

--

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