install(export) does not export compile features
It seems compile features such as cxx_std_17
are not exported when doing install(TARGETS)
+ install(EXPORT)
.
This puts the burden of choosing the correct standard on the consumer.
Is there a rationale for this ?
Is it linked to the minimum version required by *Config.cmake
files ? I can see it already has some version dependent code:
if(CMAKE_VERSION VERSION_LESS 2.8.12)
message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
endif()
It seems it was hinted that it should work here #18446 (comment 469077)
This was tested with cmake 3.16.1.
Edited by Clément Grégoire