forked from leggedrobotics/darknet_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cloning and checkout of repo for ros buildserver.
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,18 @@ if(NOT DARKNET_PATH) | |
find_path(DARKNET_PATH | ||
NAMES "README.md" | ||
HINTS "${CMAKE_CURRENT_SOURCE_DIR}/../darknet/") | ||
|
||
# Hack for ros build server (TODO: Find a better way). | ||
if(NOT DARKNET_PATH) | ||
message(STATUS "Update submodule did not work. Cloning and checkout of darknet ...") | ||
execute_process(COMMAND git clone [email protected]:pjreddie/darknet.git | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/../) | ||
execute_process(COMMAND git checkout 59ed1719d4aa77a462eb41dd4db2dd3a2f8e4a1b | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/../darknet/) | ||
find_path(DARKNET_PATH | ||
NAMES "README.md" | ||
HINTS "${CMAKE_CURRENT_SOURCE_DIR}/../darknet/") | ||
endif() | ||
endif() | ||
message("Darknet path dir = ${DARKNET_PATH}") | ||
add_definitions(-DDARKNET_FILE_PATH="${DARKNET_PATH}") | ||
|