Skip to content

Commit

Permalink
Update check
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdawkins committed Jul 26, 2023
1 parent 791bed9 commit 702da14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,16 @@ if( VIAME_ENABLE_VIAME_PLUGINS AND NOT VIAME_ENABLE_KWIVER )
message( FATAL_ERROR "Building core VIAME plugins require KWIVER" )
endif()

if( WIN32 AND VIAME_BUILD_DEPENDENCIES AND VIAME_ENABLE_KWIVER )
if( WIN32 AND VIAME_BUILD_DEPENDENCIES AND VIAME_ENABLE_KWIVER AND VIAME_BUILD_CHECKS )
string( LENGTH "${VIAME_BUILD_KWIVER_DIR}" KWIVER_BUILD_DIR_LENGTH )
string( LENGTH "${VIAME_BUILD_PLUGINS_DIR}" PLUGINS_BUILD_DIR_LENGTH )

if( KWIVER_BUILD_DIR_LENGTH GREATER 12 OR PLUGINS_BUILD_DIR_LENGTH GREATER 12 )
message( FATAL_ERROR "VIAME_BUILD_KWIVER_DIR and VIAME_BUILD_PLUGINS_DIR \
must be set to a short path (e.g. C:\\tmp\\kv1 and C:\\tmp\\vm1) on \
Windows due to a current issue with nesting KWIVER exceeding the 260 \
character default filepath size." )
character default filepath size. Alternatively disable VIAME_BUILD_CHECKS \
to ignore this message." )
endif()
endif()

Expand Down

0 comments on commit 702da14

Please sign in to comment.