Skip to content

Commit

Permalink
Update install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdawkins committed Aug 2, 2023
1 parent f945b14 commit 141d98b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion cmake/custom_install_viame.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,22 @@ if( VIAME_ENABLE_DARKNET )
endif()
endif()

# Remove un-needed scripts
# Remove OpenCV files
if( EXISTS "${VIAME_INSTALL_PREFIX}/setup_vars_opencv4.cmd" )
message( WARNING "Cleaning up OpenCV files" )
file( REMOVE "${VIAME_INSTALL_PREFIX}/setup_vars_opencv4.cmd" )
endif()

if( EXISTS "${VIAME_INSTALL_PREFIX}/LICENSE" )
file( REMOVE "${VIAME_INSTALL_PREFIX}/LICENSE" )
endif()

if( EXISTS "${VIAME_INSTALL_PREFIX}/OpenCVConfig.cmake" )
file( RENAME "${VIAME_INSTALL_PREFIX}/OpenCVConfig.cmake"
"${VIAME_INSTALL_PREFIX}/cmake/OpenCVConfig.cmake" )
endif()

if( EXISTS "${VIAME_INSTALL_PREFIX}/OpenCVConfig-version.cmake" )
file( RENAME "${VIAME_INSTALL_PREFIX}/OpenCVConfig-version.cmake"
"${VIAME_INSTALL_PREFIX}/cmake/OpenCVConfig-version.cmake" )
endif()

0 comments on commit 141d98b

Please sign in to comment.