[PATCH] D53376: Fix generation of exported targets in build directory

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 6 07:20:51 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL346231: [CMake] Fix generation of exported targets in build directory (authored by pfaffe, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D53376?vs=170613&id=172767#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D53376

Files:
  polly/trunk/cmake/CMakeLists.txt


Index: polly/trunk/cmake/CMakeLists.txt
===================================================================
--- polly/trunk/cmake/CMakeLists.txt
+++ polly/trunk/cmake/CMakeLists.txt
@@ -60,7 +60,7 @@
   if (NOT tgt_type STREQUAL "INTERFACE_LIBRARY")
     set(POLLY_EXPORTS
       "set_target_properties(${tgt} PROPERTIES
-              IMPORTED_LOCATION_$<UPPER_CASE:$<CONFIG>> $<TARGET_FILE:${tgt}>)
+              IMPORTED_LOCATION$<$<NOT:$<CONFIG:>>:_$<UPPER_CASE:$<CONFIG>>> $<TARGET_FILE:${tgt}>)
 ${POLLY_EXPORTS}")
   endif()
 endforeach(tgt)
@@ -111,7 +111,7 @@
   if (NOT tgt_type STREQUAL "INTERFACE_LIBRARY")
     set(POLLY_EXPORTS
 "set_target_properties(${tgt} PROPERTIES
-        IMPORTED_LOCATION$<$<NOT:$<CONFIG:>>:_<UPPER_CASE:$<CONFIG>> \${CMAKE_CURRENT_LIST_DIR}/${tgt_path})
+        IMPORTED_LOCATION$<$<NOT:$<CONFIG:>>:_$<UPPER_CASE:$<CONFIG>>> \${CMAKE_CURRENT_LIST_DIR}/${tgt_path})
 ${POLLY_EXPORTS}")
   endif()
 endforeach(tgt)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53376.172767.patch
Type: text/x-patch
Size: 955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181106/b70b169b/attachment.bin>


More information about the llvm-commits mailing list