Skip to content
Success

Changes

Summary

  1. Set CMAKE_LIBRARY_ARCHITECTURE to amd64 by default for 64bit This prevents cmake from picking up the 32bit version when compiling for 64bit. (commit: b5e5203) (details)
Commit b5e5203f5ba3a1d0d6d711a93189a3c462824666 by noreply
Set CMAKE_LIBRARY_ARCHITECTURE to amd64 by default for 64bit This prevents cmake from picking up the 32bit version when compiling for 64bit.

To test make a CMakeLists.txt:

find_library(XTEST X11)
message("Found X11 at ${XTEST}")

And compile with :

cmake .
rm CMakeCache.txt
cmake -DCMAKE_LIBRARY_ARCHITECTURE=amd64 .
(commit: b5e5203)
The file was modifiedmake-rules/cmake.mk (diff)