OUTPUT_NAME not taking default value when not set
Here is a simple reproducer CMake file. Just run the following command in an empty directory with the inlined CMakeLists.txt
present:
touch foo.f90
cmake .
Here is the reproducer CMakeLists.txt
:
cmake_minimum_required(VERSION 3.2)
project(Foo VERSION 1.0 LANGUAGES Fortran)
add_library(foo_lib foo.f90)
get_target_property(foo_out_name foo_lib OUTPUT_NAME)
message("Foo output name is ${foo_out_name}")
The manual clearly states:
If not set, the logical target name is used by default.
However, with CMake 3.9.0 when I run the above CMakeLists.txt
(as detailed above that) I get the following output:
[snip]
Foo output name is foo_out_name-NOTFOUND
CC: @rouson @brad.king