summaryrefslogtreecommitdiffstats
ModeNameSize
-rw-r--r--.gitattributes516logstatsplain
-rw-r--r--CMakeCPack.cmake5626logstatsplain
-rw-r--r--CMakeCPackOptions.cmake.in2752logstatsplain
-rw-r--r--CMakeGraphVizOptions.cmake153logstatsplain
-rw-r--r--CMakeLists.txt26360logstatsplain
-rw-r--r--CMakeLogo.gif4481logstatsplain
-rw-r--r--CTestConfig.cmake1052logstatsplain
-rw-r--r--CTestCustom.cmake.in2894logstatsplain
-rw-r--r--CTestCustom.ctest.in145logstatsplain
-rw-r--r--ChangeLog.manual42427logstatsplain
-rw-r--r--ChangeLog.txt2603523logstatsplain
-rw-r--r--CompileFlags.cmake2499logstatsplain
-rw-r--r--Copyright.txt2637logstatsplain
-rw-r--r--DartConfig.cmake809logstatsplain
-rw-r--r--DartLocal.conf.in4144logstatsplain
d---------Docs215logstatsplain
d---------Example105logstatsplain
d---------Modules15521logstatsplain
-rw-r--r--Readme.txt1946logstatsplain
d---------Source24589logstatsplain
d---------Templates1024logstatsplain
d---------Tests5835logstatsplain
d---------Utilities666logstatsplain
-rwxr-xr-xbootstrap52892logstatsplain
-rw-r--r--cmake.13684logstatsplain
-rw-r--r--cmake_uninstall.cmake.in968logstatsplain
-rwxr-xr-xconfigure99logstatsplain
-rw-r--r--doxygen.config28398logstatsplain
pan class="hl com"> CMAKE_${LANG}_CREATE_SHARED_LIBRARY is defined and if not default to STATIC. But at this point we know only the name of the target, but not yet its linker language. */ if ((type != cmTarget::STATIC_LIBRARY) && (this->Makefile->GetCMakeInstance()->GetPropertyAsBool( "TARGET_SUPPORTS_SHARED_LIBS") == false)) { std::string msg = "ADD_LIBRARY for library "; msg += args[0]; msg += " is used with the "; msg += type==cmTarget::SHARED_LIBRARY ? "SHARED" : "MODULE"; msg += " option, but the target platform supports only STATIC libraries. " "Building it STATIC instead. This may lead to problems."; cmSystemTools::Message(msg.c_str() ,"Warning"); type = cmTarget::STATIC_LIBRARY; } // Handle imported target creation. if(importTarget) { // The IMPORTED signature requires a type to be specified explicitly. if (!haveSpecifiedType) { this->SetError("called with IMPORTED argument but no library type."); return false; } if(type == cmTarget::OBJECT_LIBRARY) { this->Makefile->IssueMessage( cmake::FATAL_ERROR, "The OBJECT library type may not be used for IMPORTED libraries." ); return true; } // Make sure the target does not already exist. if(this->Makefile->FindTargetToUse(libName.c_str())) { cmOStringStream e; e << "cannot create imported target \"" << libName << "\" because another target with the same name already exists."; this->SetError(e.str().c_str()); return false; } // Create the imported target. this->Makefile->AddImportedTarget(libName.c_str(), type, importGlobal); return true; } // A non-imported target may not have UNKNOWN type. if(type == cmTarget::UNKNOWN_LIBRARY) { this->Makefile->IssueMessage( cmake::FATAL_ERROR, "The UNKNOWN library type may be used only for IMPORTED libraries." ); return true; } // Enforce name uniqueness. { std::string msg; if(!this->Makefile->EnforceUniqueName(libName, msg)) { this->SetError(msg.c_str()); return false; } } if (s == args.end()) { std::string msg = "You have called ADD_LIBRARY for library "; msg += args[0]; msg += " without any source files. This typically indicates a problem "; msg += "with your CMakeLists.txt file"; cmSystemTools::Message(msg.c_str() ,"Warning"); } std::vector<std::string> srclists; while (s != args.end()) { srclists.push_back(*s); ++s; } this->Makefile->AddLibrary(libName.c_str(), type, srclists, excludeFromAll); return true; }