[MacPorts] #41070: Wrong CMAKE_SYSTEM_HOST_PROCESSOR setting in cmake

MacPorts noreply at macports.org
Tue Oct 29 15:19:41 PDT 2013


#41070: Wrong CMAKE_SYSTEM_HOST_PROCESSOR setting in cmake
--------------------+--------------------------------
 Reporter:  hjj@…   |      Owner:  macports-tickets@…
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.2.0
 Keywords:  cmake   |       Port:
--------------------+--------------------------------
 A test directory with a CMakeLists.txt with this one line:
 message("-- Processor type        : ${CMAKE_HOST_SYSTEM_PROCESSOR}")
 returns (among all the other info) when doing "cmake .":
 -- Processor type        : i386

 However "uname -m" returns the correct x86_64 (on my MacBook Pro with i7
 cpu).
 This is a big problem in our computational chemistry software development,
 where we use cmake to identify correct libraries, compilers, compiler
 flags etc. (project: http://daltonprogram.org) A colleague in USA suggests
 that we switch to homebrew to solve the problem of getting cmake to do the
 correct thing on both linux and darwin systems without dirty tricks, as
 testing for darwin and ports and then change explicitly to x86_64. I hope
 that I instead can persuade you to fix the problem.

-- 
Ticket URL: <https://trac.macports.org/ticket/41070>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list