Opened 11 years ago

Last modified 11 years ago

#41070 closed defect

Wrong CMAKE_SYSTEM_HOST_PROCESSOR setting in cmake — at Initial Version

Reported by: hjj@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: cmake

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.