From 24c18387096df94245656ba65babe8defbccd374 Mon Sep 17 00:00:00 2001
From: Kei Okada <kei.okada@gmail.com>
Date: Mon, 2 Nov 2015 11:53:43 +0900
Subject: [PATCH] sm/CMakeLists.txt use TARGETS instaed of PROGRAMS, this fails
 if you compile on different directory

---
 sm/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sm/CMakeLists.txt b/sm/CMakeLists.txt
index 19b9951..97787c3 100644
--- a/sm/CMakeLists.txt
+++ b/sm/CMakeLists.txt
@@ -81,7 +81,7 @@ SUBDIRS(csm)
 MACRO(new_executable exec)
 	ADD_EXECUTABLE(${exec} apps/${exec}.c)
 	TARGET_LINK_LIBRARIES(${exec} csm-static ${csm_link_flags})
-	INSTALL(PROGRAMS ${exec} DESTINATION bin)
+	INSTALL(TARGETS ${exec} DESTINATION bin)
 ENDMACRO(new_executable exec)
 
 # new_executable(sm0)
-- 
GitLab