Skip to content

GNUInstallDirs: Warn when CMAKE_SYSTEM_NAME is not set

If someone put

include(GNUInstallDirs)

BEFORE

project(project_name VERSION 1.0 LANGUAGES CXX)

then there will missed CMAKE_SYSTEM_NAME during GNUInstallDirs processing, therefore LIBDIR will defined incorrecty. This fix move warning about it in more common place.

Topic-rename: GNUInstallDirs-no-system

Edited by Brad King

Merge request reports