Skip to content

Commit

Permalink
remove the use of the LOCATION CMake variable from r238740.
Browse files Browse the repository at this point in the history
It caused the following failure:
"Policy CMP0026 is not set: Disallow use of the LOCATION target property."

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238741 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gregbedwell committed Jun 1, 2015
1 parent c2165f1 commit 84ffd21
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmake/modules/AddLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,6 @@ function(set_windows_version_resource_properties name resource_file)
set(ARG_PRODUCT_NAME "LLVM")
endif()

get_target_property(target_location ${name} LOCATION)
get_filename_component(target_filename ${target_location} NAME)

set_property(SOURCE ${resource_file}
PROPERTY COMPILE_DEFINITIONS
"RC_VERSION_FIELD_1=${ARG_VERSION_MAJOR}"
Expand All @@ -295,7 +292,6 @@ function(set_windows_version_resource_properties name resource_file)
"RC_VERSION_FIELD_4=0"
"RC_FILE_VERSION=\"${ARG_VERSION_STRING}\""
"RC_INTERNAL_NAME=\"${name}\""
"RC_ORIGINAL_FILENAME=\"${target_filename}\""
"RC_PRODUCT_NAME=\"${ARG_PRODUCT_NAME}\""
"RC_PRODUCT_VERSION=\"${ARG_VERSION_STRING}\"")
endfunction(set_windows_version_resource_properties)
Expand Down

0 comments on commit 84ffd21

Please sign in to comment.