mirror of
https://github.com/Kitware/CMake.git
synced 2025-06-27 22:52:43 +08:00

-- Add test demonstrating issue -- In the case of executable targets the target name is usually the same as used in "-o filename" But for static libraries the target name is usually "-o libname.a" "gbuild.exe target" will build whatever target matches against even the output from the compiler or linker But the targets in "cmake --build . --target name" should be target names in CMakeLists.txt not the actual filenames So change the "name" to "name.gpj" so it matches the target name in CMakeLists.txt. Fixes #15975
5 lines
32 B
C
5 lines
32 B
C
int lib(int x)
|
|
{
|
|
return -x;
|
|
}
|