changing rosmake's invocation of make to have a consistent path and not force spurious rebuilds
This commit is contained in:
parent
7ef28703ad
commit
fbe26c57a6
|
@ -40,7 +40,9 @@ def assert_rospack_built():
|
|||
# Do not try to build rospack if a ROS_NOBUILD flag is present
|
||||
return True
|
||||
|
||||
if subprocess.call(["make", "-C", os.path.join(os.environ["ROS_ROOT"], "tools/rospack")], stdout=subprocess.PIPE, stderr=subprocess.PIPE) :
|
||||
#cmd = ["make", "-C", os.path.join(os.environ["ROS_ROOT"], "tools/rospack")] Doesn't work with cmake 2.6, will trigger rebuilds due to different paths. Fixed in 2.8.
|
||||
cmd = ["bash", "-c", "cd %s && make"%(os.path.join(os.environ["ROS_ROOT"], "tools/rospack"))]
|
||||
if subprocess.call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) :
|
||||
print "Rospack failed to build"
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in New Issue