Skip to content

Commit

Permalink
fixing cached var find_library() (#13596)
Browse files Browse the repository at this point in the history
Changelog: Bugfix: Fixed ``CMakeDeps`` not clearing
``CONAN_SHARED_FOUND_LIBRARY`` var in `find_library()
Docs: Omit

Close #13512
  • Loading branch information
AbrilRBS authored Apr 3, 2023
2 parents 32bec76 + 7a008fb commit 9799ba2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conan/tools/cmake/cmakedeps/templates/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def template(self):
set_target_properties(${_LIB_NAME} PROPERTIES IMPORTED_IMPLIB ${CONAN_FOUND_LIBRARY})
message(DEBUG "Found DLL and STATIC at ${CONAN_SHARED_FOUND_LIBRARY}, ${CONAN_FOUND_LIBRARY}")
endif()
unset(CONAN_SHARED_FOUND_LIBRARY CACHE)
else()
if(NOT TARGET ${_LIB_NAME})
# library_type can be STATIC, still UNKNOWN (if no package type available in the recipe) or SHARED (but no windows)
Expand Down

0 comments on commit 9799ba2

Please sign in to comment.