diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt
index 62ecda9dcc1286d08c8cbb68645f8a388afd040d..b1202d24417bae9bf177ff695af3e7ae51e498f6 100644
--- a/demo/CMakeLists.txt
+++ b/demo/CMakeLists.txt
@@ -15,7 +15,7 @@ foreach(s ${sources})
   get_filename_component(swe ${s} NAME_WE)
   add_executable(${swe} ${s})
   target_link_libraries(${swe} ${BASIS_LIBS})
-  install(${swe})
+  install(TARGETS ${swe})
 endforeach(s)
 
 #create the output dir