[cmake] Unbreak LLVM-Config.cmake / llvm_expand_dependencies.
[oota-llvm.git] / utils / not / CMakeLists.txt
index 155d2e3ae7e4f8f96cd1348f5b35be81b9ce5854..4a92348ba0f9d82ed4c307f170da2e02e63c5636 100644 (file)
@@ -1,11 +1,5 @@
-add_executable(not
+add_llvm_utility(not
   not.cpp
   )
 
 target_link_libraries(not LLVMSupport)
-if( MINGW )
-  target_link_libraries(not imagehlp psapi)
-endif( MINGW )
-if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD )
-  target_link_libraries(not pthread)
-endif()