[cmake-developers] [CMake 0014833]: FindProtobuf module under Windows doesn't support 64-bit builds

Mantis Bug Tracker mantis at public.kitware.com
Mon Mar 24 20:30:17 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14833 
====================================================================== 
Reported By:                David Hait
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14833
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-03-24 20:30 EDT
Last Modified:              2014-03-24 20:30 EDT
====================================================================== 
Summary:                    FindProtobuf module under Windows doesn't support
64-bit builds
Description: 
Default Windows protobuf library builds go in x64\Debug and x64\Release
directories, rather than Debug and Release.
The FindProtobuf module has the library directories hard-coded; there is no way
to specify the x64 directories to search for the libraries.

Steps to Reproduce: 
1.Build ProtocolBuffer with the VS project using x64 settings
2.Run cmake with FindProtobuf as part of a CMakeLists.txt
3.Run msbuild

Error:
 libprotobuf.lib(common.obj) : fatal error LNK1112: module machine type 'X86'
conflicts with target machine type 'x64' [C:\omserv\build\src\omserv.vcxproj]

Additional Information: 
There should be an additional CMake variable to specify the library folder.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-03-24 20:30 David Hait     New Issue                                    
======================================================================



More information about the cmake-developers mailing list