Skip to content

Commit

Permalink
Update conan.cmake to 0.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Apr 4, 2022
1 parent e339548 commit b2b13d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ developer/msvc/Visualizers/all_concat.natvis
.clangd/
cppcheck.txt*
clang_format.patch

__pycache__/
*.pyc
18 changes: 10 additions & 8 deletions ConanInstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@

if(NOT CONAN_OPENSTUDIO_ALREADY_RUN)

set(CMAKE_CONAN_EXPECTED_HASH 52a255a933397fdce3d0937f9c737e98)
set(CMAKE_CONAN_VERSION "0.17.0")
set(CMAKE_CONAN_EXPECTED_HASH
396e16d0f5eabdc6a14afddbcfff62a54a7ee75c6da23f32f7a31bc85db23484)
set(CMAKE_CONAN_VERSION "0.18.0")

if(EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
file(MD5 "${CMAKE_BINARY_DIR}/conan.cmake" CMAKE_CONAN_HASH)
endif()
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake"
OR NOT "${CMAKE_CONAN_HASH}" MATCHES "${CMAKE_CONAN_EXPECTED_HASH}")
file(SHA256 "${CMAKE_BINARY_DIR}/conan.cmake" CMAKE_CONAN_HASH)
elseif(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake"
OR NOT "${CMAKE_CONAN_HASH}" MATCHES "${CMAKE_CONAN_EXPECTED_HASH}")
# Put it in CMAKE_BINARY_DIR so we don't end up with two when building OpenStudioApplication
message(
STATUS
"openstudio: Downloading conan.cmake ${CMAKE_CONAN_VERSION} from https://github.com/conan-io/cmake-conan"
)
file(
DOWNLOAD
"https://github.com/conan-io/cmake-conan/raw/${CMAKE_CONAN_VERSION}/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake")
"https://raw.githubusercontent.com/conan-io/cmake-conan/${CMAKE_CONAN_VERSION}/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake"
EXPECTED_HASH SHA256=${CMAKE_CONAN_EXPECTED_HASH}
TLS_VERIFY ON)
else()
message(STATUS "openstudio: using existing conan.cmake")
endif()
Expand Down

0 comments on commit b2b13d2

Please sign in to comment.