16d040c958
Teach the project() command to recognize an optional "LANGUAGES" keyword after the project name and prior to the list of languages. Do not allow multiple copies of the keyword. If the keyword is specified and no languages are listed, imply NONE.
4 lines
129 B
CMake
4 lines
129 B
CMake
project(ProjectA LANGUAGES)
|
|
get_property(langs GLOBAL PROPERTY ENABLED_LANGUAGES)
|
|
message(STATUS "ENABLED_LANGUAGES='${langs}'")
|