Ensure lzo cache path always current

This commit is contained in:
Jack Andersen 2016-09-07 20:15:04 -10:00
parent 94dc1e46fa
commit ca09f732ba
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ if(WIN32 AND NOT UNIX)
install(DIRECTORY include/lzo DESTINATION include COMPONENT lzo2)
install(TARGETS lzo2 DESTINATION lib COMPONENT lzo2)
endif()
unset(LZO_LIB CACHE)
unset(LZO_INCLUDE_DIR CACHE)
set(LZO_LIB lzo2 CACHE PATH "LZO library" FORCE)
set(LZO_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include CACHE PATH "LZO include path" FORCE)
else()