Hi: I’m reading https://cmake.org/cmake/help/latest/command/project.html#code-injection But it seems to me that there isn’t a hook for:
- Toolchain is read and compilers setup
- Languages has been enabled
- No targets has been created yet
My CMake now goes:
toolchain.cmake:
set(CMAKE_PROJECT_TOP_LEVEL_INCLUDES project_fixup.cmake)
project_fixup.cmake:
get_property(LANGUAGES GLOBAL PROPERTY ENABLED_LANGUAGES)
message(STATUS "Enabled Languages: ${LANGUAGES}")
but during configuration time it prints:
...
-- Enabled Languages:
...
which is empty.
What am I doing wrong here?