]> granicus.if.org Git - clang/commit
[CMake] clang-*.*: Prevent versioning if the buildhost is targeting for Win32.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 5 Jul 2015 10:16:24 +0000 (10:16 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 5 Jul 2015 10:16:24 +0000 (10:16 +0000)
commit5fdfa6b2cd05de81ae167438e6ecccaee09f1980
treeefb76777c5b1ba0de9041df6b5e6da33242efb7f
parent24d08d9bc7b30c1f9503528ea52519c18072eade
[CMake] clang-*.*: Prevent versioning if the buildhost is targeting for Win32.

CMake-2.8.12 is hardcoded to create symlinked clang.exe if the target property VERSION is present and the host is not Win32.
Then clang.exe-*.* is generated and clang.exe is symlinked to it.

  lrwxrwxrwx. 1 bb bb      13 Jul  5 18:04 clang.exe -> clang.exe-3.7
  -rwxr-x---. 1 bb bb  244763 Jul  5 18:04 clang++.exe
  -rwxr-x---. 1 bb bb  244763 Jul  5 18:04 clang.exe-3.7

It made me unhappy when built binaries were copied to the Windows target.

FIXME: Could we just remove the target property VERSION in add_llvm_executable() ?

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241403 91177308-0d34-0410-b5e6-96231b3b80d8
tools/driver/CMakeLists.txt