Launch from workdir
authorRomain Forlot <romain.forlot@iot.bzh>
Mon, 7 May 2018 15:00:04 +0000 (17:00 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Mon, 7 May 2018 15:00:35 +0000 (17:00 +0200)
This will ensure we are to be able to correctly debug
with GDB. Indeed workdir afb-daemon parameter need to be
set at the current dir to correctly retrieve source files
path for GDB

Change-Id: Ib59e80ec48314d5d58e033d894314d0bd676fb85
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
samples.d/config.cmake.sample

index b69784d..3ec9201 100644 (file)
@@ -184,7 +184,7 @@ set(AFB_REMPORT "1234" CACHE PATH "Default binder listening port")
 
 # Print a helper message when every thing is finished
 # ----------------------------------------------------
-set(CLOSING_MESSAGE "Typical binding launch: afb-daemon --port=${AFB_REMPORT} --workdir=${CMAKE_BINARY_DIR} --ldpaths=package/lib --roothttp=package/htdocs  --token=\"${AFB_TOKEN}\" --tracereq=common --verbose")
+set(CLOSING_MESSAGE "Typical binding launch: cd ${CMAKE_BINARY_DIR}/package && afb-daemon --port=${AFB_REMPORT} --workdir=. --ldpaths=lib --roothttp=htdocs  --token=\"${AFB_TOKEN}\" --tracereq=common --verbose")
 set(PACKAGE_MESSAGE "Install widget file using in the target : afm-util install ${PROJECT_NAME}.wgt")
 
 # Optional schema validator about now only XML, LUA and JSON