Skip to content

Commit

Permalink
fix: #28
Browse files Browse the repository at this point in the history
  • Loading branch information
filipdutescu committed Sep 30, 2021
1 parent 225b6bf commit 4b6ae29
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions cmake/Conan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,35 @@ if(${PROJECT_NAME}_ENABLE_CONAN)
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(
STATUS
"Downloading conan.cmake from https://github.com/conan-io/cmake-conan..."
"Downloading conan.cmake from https://github.com/conan-io/cmake-conan..."
)
file(DOWNLOAD "https://github.com/conan-io/cmake-conan/raw/v0.15/conan.cmake"
file(
DOWNLOAD "https://github.com/conan-io/cmake-conan/raw/v0.15/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake"
)
message(STATUS "Cmake-Conan downloaded succesfully.")
endif()

include(${CMAKE_BINARY_DIR}/conan.cmake)

conan_add_remote(NAME bincrafters
URL
https://api.bintray.com/conan/bincrafters/public-conan
conan_add_remote(
NAME bincrafters
URL
https://api.bintray.com/conan/bincrafters/public-conan
)

conan_cmake_run(
REQUIRES
${CONAN_REQUIRES}
${${PROJECT_NAME}_CONAN_REQUIRES}
OPTIONS
${CONAN_OPTIONS}
${${PROJECT_NAME}_CONAN_OPTIONS}
BASIC_SETUP
CMAKE_TARGETS # Individual targets to link to
CMAKE_TARGETS # Individual targets to link to
BUILD
missing
missing
)

conan_basic_setup()

verbose_message("Conan is setup and all requires have been installed.")
endif()

0 comments on commit 4b6ae29

Please sign in to comment.