Skip to content
Snippets Groups Projects
Commit 915ebaaa authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[Conan] Check only once a day for new Conan packages.

Code looks a lot like CMake-fu... it has to be!
Will speed up CMake runs after the first run on each day.
parent 32886654
No related branches found
No related tags found
No related merge requests found
......@@ -107,9 +107,20 @@ if(MSVC)
set(CONAN_IMPORTS ${CONAN_IMPORTS} "plugins/platforms, *.dll* -> ./bin/platforms")
endif()
file(TIMESTAMP ${PROJECT_BINARY_DIR}/conan_install_timestamp.txt file_timestamp "%Y.%m.%d")
string(TIMESTAMP timestamp "%Y.%m.%d")
# Run conan install update only once a day
if("${file_timestamp}" VERSION_LESS ${timestamp})
file(WRITE ${PROJECT_BINARY_DIR}/conan_install_timestamp.txt "${timestamp}\n")
set(CONAN_UPDATE UPDATE)
else()
message(STATUS "Conan: Skipping update step.")
endif()
conan_cmake_run(
BASIC_SETUP
UPDATE
${CONAN_UPDATE}
KEEP_RPATHS
REQUIRES ${CONAN_REQUIRES}
OPTIONS ${CONAN_OPTIONS}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment