Skip to content

Commit

Permalink
Don't wipe out TPL_<tplName>_INCLUDE_DIRS if set by user (TriBITSPub#534
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlettroscoe committed Oct 26, 2022
1 parent 59617e7 commit 7fd57e5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,11 @@ function(tribits_tpl_find_include_dirs_and_libraries TPL_NAME)
advanced_set(TPL_${TPL_NAME}_INCLUDE_DIRS ${${TPL_NAME}_INCLUDE_DIRS}
CACHE PATH "User provided include dirs in the absence of include files.")
else()
# Library has no header files, no user override, so just set them to null
global_null_set(TPL_${TPL_NAME}_INCLUDE_DIRS)
if ("${TPL_${TPL_NAME}_INCLUDE_DIRS}" STREQUAL "")
# Library has no header files, no user override, so just set them to
# null (unless the user has already set this).
global_null_set(TPL_${TPL_NAME}_INCLUDE_DIRS)
endif()
endif()

endif()
Expand Down

0 comments on commit 7fd57e5

Please sign in to comment.