CMake: Disable ENABLE_EXPORTS for executables with MSVC
[oota-llvm.git] / tools / opt / CMakeLists.txt
index 12dc4f0a9f558115dcc7489459b4ecb9b3fd2ac4..5f825220cc889d018c0eb3d75ca39f6ebc22a363 100644 (file)
@@ -31,7 +31,7 @@ add_llvm_tool(opt
   PrintSCC.cpp
   opt.cpp
   )
-set_target_properties(opt PROPERTIES ENABLE_EXPORTS 1)
+export_executable_symbols(opt)
 
 if(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
   target_link_libraries(opt Polly)