Skip to content

Commit

Permalink
Changed get_relative_path to file(RELATIVE_PATH...) to stop relpath f…
Browse files Browse the repository at this point in the history
…rom being blank on Windows. See issue RobotLocomotion#1674
  • Loading branch information
jonathan-owens committed Mar 3, 2016
1 parent 0dd9898 commit 79c959a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ add_subdirectory(bindings)
include(cmake/matlab_pods.cmake)
pods_configure_matlab_paths()

get_relative_path("${CMAKE_INSTALL_PREFIX}/matlab" "${CMAKE_CURRENT_SOURCE_DIR}" relpath)
file(RELATIVE_PATH relpath ${CMAKE_INSTALL_PREFIX}/matlab ${CMAKE_CURRENT_SOURCE_DIR})

message(STATUS "Writing addpath_drake.m and rmpath_drake.m to ${CMAKE_INSTALL_PREFIX}/matlab")
file(WRITE ${CMAKE_INSTALL_PREFIX}/matlab/addpath_drake.m
Expand Down

0 comments on commit 79c959a

Please sign in to comment.