Removed premature reference to PROJECT_SOURCE_DIR that causes trouble in certain symlink environments, #3064

This commit is contained in:
Brian Gerkey 2010-10-14 05:14:23 +00:00
parent a4c94a9481
commit 4c09ffbd15
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ macro(rosbuild_init)
set(ROSBUILD_init_called 1)
# Infer package name from directory name.
get_filename_component(_project ${PROJECT_SOURCE_DIR} NAME)
get_filename_component(_project ${CMAKE_SOURCE_DIR} NAME)
message("[rosbuild] Building package ${_project}")
project(${_project})