Skip to content

Commit

Permalink
Merge pull request #46 from joakim-hove/link-to-correct-job_dispatch
Browse files Browse the repository at this point in the history
Link to the correct job_dispatch from libres.
  • Loading branch information
joakim-hove authored Jul 25, 2017
2 parents 92ff6cc + 3d5ae3a commit b90aa34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ function( make_symlink target link )
endif()

if (EXISTS ${target})
EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} -E create_symlink "${target}" "${link}")
message(STATUS "Linking : ${link} -> ${target}")
get_filename_component( abs_target ${target} ABSOLUTE )
EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} -E create_symlink "${abs_target}" "${link}")
message(STATUS "Linking : ${link} -> ${abs_target}")
else()
message( SEND_ERROR "Link target: ${target} does not exist")
endif()
Expand All @@ -44,7 +45,7 @@ endif()

EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} -E make_directory "${PROJECT_BINARY_DIR}/bin")
make_symlink( "${CMAKE_CURRENT_SOURCE_DIR}/share" "${CMAKE_CURRENT_BINARY_DIR}/share" )
make_symlink( "${res_DIR}/../../bin/job_dispatch.py" "${PROJECT_BINARY_DIR}/bin/job_dispatch.py")
make_symlink( "${res_DIR}/../../../bin/job_dispatch.py" "${PROJECT_BINARY_DIR}/bin/job_dispatch.py")

set( ERT_ROOT "${PROJECT_BINARY_DIR}" )

Expand Down

0 comments on commit b90aa34

Please sign in to comment.