Skip to content

Commit

Permalink
Changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Desmond committed May 31, 2019
1 parent b38728c commit 2214278
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions conan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -540,15 +540,14 @@ function(conan_add_remote)
# Example usage:
# conan_add_remote(NAME bincrafters INDEX 1
# URL https://api.bintray.com/conan/bincrafters/public-conan)
conan_check()

set(oneValueArgs URL NAME INDEX)
cmake_parse_arguments(CONAN "" "${oneValueArgs}" "" ${ARGN})

if(DEFINED CONAN_INDEX)
set(CONAN_INDEX_ARG "-i ${CONAN_INDEX}")
endif()

conan_check()
message(STATUS "Conan: Adding ${CONAN_NAME} remote repository (${CONAN_URL})")
execute_process(COMMAND ${CONAN_CMD} remote add ${CONAN_NAME} ${CONAN_URL}
${CONAN_INDEX_ARG} -f)
Expand Down

0 comments on commit 2214278

Please sign in to comment.