CREATE_PROJECT: fixed cmake generator
* Support for pkg-config was added * Shortened the CMakeLists.txt by more than 4000 lines * Added macro for feature detection * Configure stage is reporting missing libs as error now (they were reported as compile errors during the build before) * Link the scummvm-detection lib (this was missing before) * Added missing defines like DETECTION_STATIC and USE_SDL2 * Group impl and header files in src file list to shorten the cmake script * Unified indention for generated script
This commit is contained in:
parent
f468db1c63
commit
7be30d492b
5 changed files with 146 additions and 76 deletions
|
@ -1151,8 +1151,8 @@ bool setFeatureBuildState(const std::string &name, FeatureList &features, bool e
|
|||
}
|
||||
}
|
||||
|
||||
bool getFeatureBuildState(const std::string &name, FeatureList &features) {
|
||||
FeatureList::iterator i = std::find(features.begin(), features.end(), name);
|
||||
bool getFeatureBuildState(const std::string &name, const FeatureList &features) {
|
||||
FeatureList::const_iterator i = std::find(features.begin(), features.end(), name);
|
||||
if (i != features.end()) {
|
||||
return i->enable;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue