llvm.org GIT mirror llvm / 84ffd21
remove the use of the LOCATION CMake variable from r238740. 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 Greg Bedwell 4 years ago
1 changed file(s) with 0 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
283283 set(ARG_PRODUCT_NAME "LLVM")
284284 endif()
285285
286 get_target_property(target_location ${name} LOCATION)
287 get_filename_component(target_filename ${target_location} NAME)
288
289286 set_property(SOURCE ${resource_file}
290287 PROPERTY COMPILE_DEFINITIONS
291288 "RC_VERSION_FIELD_1=${ARG_VERSION_MAJOR}"
294291 "RC_VERSION_FIELD_4=0"
295292 "RC_FILE_VERSION=\"${ARG_VERSION_STRING}\""
296293 "RC_INTERNAL_NAME=\"${name}\""
297 "RC_ORIGINAL_FILENAME=\"${target_filename}\""
298294 "RC_PRODUCT_NAME=\"${ARG_PRODUCT_NAME}\""
299295 "RC_PRODUCT_VERSION=\"${ARG_VERSION_STRING}\"")
300296 endfunction(set_windows_version_resource_properties)