Skip to content

Commit

Permalink
Attempt remove of special case directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdawkins committed Aug 18, 2023
1 parent 7014f75 commit b4518e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion cmake/add_project_postgres.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set( VIAME_POSTGRES_URL https://data.kitware.com/api/v1/item/5ba55cd58d777f06b90
set( VIAME_POSTGRES_MD5 7648e722fda0fcc47c96ef8093a369be )
set( VIAME_POSTGRES_FILENAME postgresql-9.5.1-1-windows-x64-binaries.zip )

set( VIAME_POSTGRES_DIR ${VIAME_BUILD_PREFIX}/src/postgres )

ExternalProject_Add( postgres
URL ${VIAME_POSTGRES_URL}
URL_MD5 ${VIAME_POSTGRES_MD5}
Expand All @@ -12,5 +14,8 @@ ExternalProject_Add( postgres
PREFIX ${VIAME_BUILD_PREFIX}
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory ${VIAME_BUILD_PREFIX}/src/postgres ${VIAME_BUILD_INSTALL_PREFIX}/postgres
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory ${VIAME_POSTGRES_DIR}/bin ${VIAME_BUILD_INSTALL_PREFIX}/bin
COMMAND ${CMAKE_COMMAND} -E copy_directory ${VIAME_POSTGRES_DIR}/lib ${VIAME_BUILD_INSTALL_PREFIX}/lib
COMMAND ${CMAKE_COMMAND} -E copy_directory ${VIAME_POSTGRES_DIR}/include ${VIAME_BUILD_INSTALL_PREFIX}/include
COMMAND ${CMAKE_COMMAND} -E copy_directory ${VIAME_POSTGRES_DIR}/share ${VIAME_BUILD_INSTALL_PREFIX}/share
)
2 changes: 1 addition & 1 deletion cmake/setup_viame.dev.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ REM This script sets up all paths required for standard VIAME Usage

SET VIAME_INSTALL=%~dp0

SET PATH=%VIAME_INSTALL%\bin;%VIAME_INSTALL%\postgres\bin;%VIAME_INSTALL%\Scripts;%PATH%
SET PATH=%VIAME_INSTALL%\bin;%VIAME_INSTALL%\Scripts;%PATH%

SET LD_LIBRARY_PATH=%VIAME_INSTALL%\bin;%PATH%

Expand Down
2 changes: 1 addition & 1 deletion cmake/setup_viame.rel.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ REM This script sets up all paths required for standard VIAME Usage

SET VIAME_INSTALL=%~dp0

SET PATH=%VIAME_INSTALL%\bin;%VIAME_INSTALL%\postgres\bin;%VIAME_INSTALL%\Scripts;%PATH%
SET PATH=%VIAME_INSTALL%\bin;%VIAME_INSTALL%\bin;%VIAME_INSTALL%\Scripts;%PATH%

SET LD_LIBRARY_PATH=%VIAME_INSTALL%\bin;%PATH%

Expand Down

0 comments on commit b4518e1

Please sign in to comment.