diff options
author | Tobias Hammer <tohammer@users.noreply.github.com> | 2020-07-08 20:36:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 14:36:39 -0400 |
commit | dc464c1dc489308d1bb9311392769d06468758a0 (patch) | |
tree | 3dbb0b87e17ddbcb304d72b758e76ed7e29b48ea | |
parent | bf655de09b67fd8b924814cbb369cb65ddd0bd24 (diff) |
Allow overriding Abseil IDE folder (#724)
by not setting when ABSL_IDE_FOLDER is provided from outside.
This allows to move Abseil into e.g. a 3rd party lib folder when used
in a larger project.
-rw-r--r-- | CMake/AbseilHelpers.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake index 86ff9eba..8b2925c5 100644 --- a/CMake/AbseilHelpers.cmake +++ b/CMake/AbseilHelpers.cmake @@ -23,7 +23,9 @@ include(AbseilInstallDirs) # project that sets # set_property(GLOBAL PROPERTY USE_FOLDERS ON) # For example, Visual Studio supports folders. -set(ABSL_IDE_FOLDER Abseil) +if(NOT DEFINED ABSL_IDE_FOLDER) + set(ABSL_IDE_FOLDER Abseil) +endif() # absl_cc_library() # |