CMake
Last updated
CMake Documentation (official, latest, top-level)
CMake Tutorial (official, latest)
CMake Practice (tutorial from users)
CMake 3.0.2 Documentation (top level, minimum requirement in Ubuntu 18)
build target and library, set property
about find_package(), etc.
std::min and std::max
min and max are defined as macros on some systems. std::min and std::max may not be used. Use cmMinimum and cmMaximum instead.
size_t
Various implementations have differing implementation of size_t. When assigning the result of .size() on a container for example, the result should not be assigned to an unsigned int or similar. std::size_t must not be used.
Last updated