Fix cmake build without native target selected.
authorOscar Fuentes <ofv@wanadoo.es>
Fri, 3 Sep 2010 02:22:23 +0000 (02:22 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Fri, 3 Sep 2010 02:22:23 +0000 (02:22 +0000)
commite1967a742e1fcbb5fb525f87b8501e8f6e3ef878
treebe41f8d118550944564441e7009bbf3efad384a3
parent95f1e2d6b52d55773bca16a5d3b7b283344dc47d
Fix cmake build without native target selected.

The cmake (+ MSVC) build is broken if you don't select your native
target.

e.g. 'cmake -D LLVM_TARGETS_TO_BUILD="MyNonNativeTarget" .'

This is because cmake currently sets the LLVM_NATIVE_* definitions
regardless of whether the native target is selected (causing build
errors).

Patch by Mike Gist!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112946 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/config-ix.cmake