Skip to content

Commit

Permalink
Merge pull request #525 from openstudiocoalition/521_workaround
Browse files Browse the repository at this point in the history
Workaround for #521: download the missing vcomp140.dll
  • Loading branch information
jmarrec authored May 6, 2022
2 parents 2ec712e + abc8bf0 commit d457fb3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions FindOpenStudioSDK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,16 @@ else()
)
endif()
endif()

# TODO: Temporary workaround for missing vcomp140.dll in SDK package for EnergyPlus
if(WIN32)
if(NOT EXISTS "${openstudio_ROOT_DIR}/EnergyPlus/vcomp140.dll")
message(AUTHOR_WARNING "Downloading missing vcomp140.dll")
file(DOWNLOAD "https://github.com/openstudiocoalition/OpenStudioApplication/releases/download/v1.4.0-rc1/vcomp140.dll" "${openstudio_ROOT_DIR}/EnergyPlus/vcomp140.dll"
SHOW_PROGRESS
INACTIVITY_TIMEOUT 120 # 2-min timeout
STATUS DOWNLOAD_STATUS
)
message(AUTHOR_WARNING "vcomp140.dll DOWNLOAD_STATUS=${DOWNLOAD_STATUS}")
endif()
endif()

0 comments on commit d457fb3

Please sign in to comment.