diff options
| author | Greg Bedwell <greg_bedwell@sn.scee.net> | 2015-06-12 16:33:38 +0000 |
|---|---|---|
| committer | Greg Bedwell <greg_bedwell@sn.scee.net> | 2015-06-12 16:33:38 +0000 |
| commit | 141e8bdfc26a5c83c12df63b08c9c71f94038bb0 (patch) | |
| tree | 16d75b20f9774d181f84546c26f09d27c3d9a351 /clang | |
| parent | 3664253c52c05a81a4ebf9c6d1e4f4ab75ecd980 (diff) | |
| download | bcm5719-llvm-141e8bdfc26a5c83c12df63b08c9c71f94038bb0.tar.gz bcm5719-llvm-141e8bdfc26a5c83c12df63b08c9c71f94038bb0.zip | |
Use Clang version numbers for the Windows VERSIONINFO resource.
When setting the VERSIONINFO resource to embed version information into exe and
DLL files on Windows, override the default LLVM version number values with their
clang equivalents.
llvm-svn: 239617
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index 357286b0e6a..ab70f1dab61 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -320,6 +320,17 @@ function(clang_tablegen) endif() endfunction(clang_tablegen) +macro(set_clang_windows_version_resource_properties name) + if(DEFINED windows_resource_file) + set_windows_version_resource_properties(${name} ${windows_resource_file} + VERSION_MAJOR ${CLANG_VERSION_MAJOR} + VERSION_MINOR ${CLANG_VERSION_MINOR} + VERSION_PATCHLEVEL ${CLANG_VERSION_PATCHLEVEL} + VERSION_STRING "${CLANG_VERSION} (${BACKEND_PACKAGE_STRING})" + PRODUCT_NAME "clang") + endif() +endmacro() + macro(add_clang_library name) cmake_parse_arguments(ARG "" @@ -377,11 +388,13 @@ macro(add_clang_library name) endif() set_target_properties(${name} PROPERTIES FOLDER "Clang libraries") + set_clang_windows_version_resource_properties(${name}) endmacro(add_clang_library) macro(add_clang_executable name) add_llvm_executable( ${name} ${ARGN} ) set_target_properties(${name} PROPERTIES FOLDER "Clang executables") + set_clang_windows_version_resource_properties(${name}) endmacro(add_clang_executable) set(CMAKE_INCLUDE_CURRENT_DIR ON) |

