]> granicus.if.org Git - clang/commitdiff
clang-interpreter example cmake fix
authorLuke Cheeseman <luke.cheeseman@arm.com>
Wed, 21 Mar 2018 12:05:19 +0000 (12:05 +0000)
committerLuke Cheeseman <luke.cheeseman@arm.com>
Wed, 21 Mar 2018 12:05:19 +0000 (12:05 +0000)
Add in a space when appending the export to the linker options. Without
the space the export is appended onto whatever the last link option
was, which might be a file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328092 91177308-0d34-0410-b5e6-96231b3b80d8

examples/clang-interpreter/CMakeLists.txt

index c5ab076fc1c3b56421d1f33e3d3a99bf9e046094..0d132807c4371ca08cad51c746f47d846538a0f0 100644 (file)
@@ -34,7 +34,7 @@ if (MSVC)
   # Is this a CMake bug that even with export_executable_symbols, Windows
   # needs to explictly export the type_info vtable
   set_property(TARGET clang-interpreter
-               APPEND_STRING PROPERTY LINK_FLAGS /EXPORT:??_7type_info@@6B@)
+               APPEND_STRING PROPERTY LINK_FLAGS " /EXPORT:??_7type_info@@6B@")
 endif()
 
 function(clang_enable_exceptions TARGET)