diff --git a/hpvm/lib/Transforms/InPlaceDFG/CMakeLists.txt b/hpvm/lib/Transforms/InPlaceDFG/CMakeLists.txt
index d034ae49768be756a99c180f92ea1048a3768899..75e97b9cf7b1b5feab6099f0904419d7ea162777 100644
--- a/hpvm/lib/Transforms/InPlaceDFG/CMakeLists.txt
+++ b/hpvm/lib/Transforms/InPlaceDFG/CMakeLists.txt
@@ -2,7 +2,8 @@ if(WIN32 OR CYGWIN)
   set(LLVM_LINK_COMPONENTS Core Support)
 endif()
 
-add_llvm_loadable_module( LLVMInPlaceDFGAnalysis
+add_llvm_library( LLVMInPlaceDFGAnalysis
+  MODULE
   InPlaceDFGAnalysis.cpp
 
   DEPENDS
@@ -10,3 +11,5 @@ add_llvm_loadable_module( LLVMInPlaceDFGAnalysis
   PLUGIN_TOOL
   opt
   )
+
+