diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-11-02 17:20:26 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-11-02 19:10:05 +0000 |
commit | 495dee98fc1af69bd22ff7f815da85787694d8f4 (patch) | |
tree | fb95268ff66bc1d7a6228106f8224a31567696a2 /src/libs/qtcreatorcdbext | |
parent | 89644e4a06e11be0becd58d112974af4c6b64a82 (diff) |
cmake build: Handle turning on/off libraries the same as plugins
Previously the library targets were added, but with EXCLUDE_FROM_ALL.
This had the effect that libraries were not compiled if nothing depends
on them, but lead to various issues: It wasn't possible to manually
control compilation, and it lead to the library targets still being
exported, leading to configuration errors when building external
plugins.
Implement the same mechanism with BUILD_LIBRARY_* as with plugins,
giving complete control.
Change-Id: Idea3371d130593c5c2fdceee374021b6923db0c9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/libs/qtcreatorcdbext')
-rw-r--r-- | src/libs/qtcreatorcdbext/CMakeLists.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libs/qtcreatorcdbext/CMakeLists.txt b/src/libs/qtcreatorcdbext/CMakeLists.txt index f024eaa482..b6171d183d 100644 --- a/src/libs/qtcreatorcdbext/CMakeLists.txt +++ b/src/libs/qtcreatorcdbext/CMakeLists.txt @@ -23,7 +23,6 @@ endforeach() add_qtc_library(qtcreatorcdbext COMPONENT qtcreatorcdbext - BUILD_BY_DEFAULT UNVERSIONED DEPENDS ${DbgEngLib} DESTINATION lib/qtcreatorcdbext${ArchSuffix}/ |