[Polly][CMake] Fix variable name in target exports
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Fri, 12 May 2017 10:39:38 +0000 (10:39 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Fri, 12 May 2017 10:39:38 +0000 (10:39 +0000)
llvm-svn: 302888

polly/cmake/CMakeLists.txt

index c0c9725..62693f3 100644 (file)
@@ -116,7 +116,7 @@ foreach(tgt IN LISTS POLLY_CONFIG_EXPORTED_TARGETS)
   if (NOT tgt_type STREQUAL "INTERFACE_LIBRARY")
     set(POLLY_EXPORTS
 "set_target_properties(${tgt} PROPERTIES
-        IMPORTED_LOCATION_$<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)