mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 20:00:38 -06:00
Merge branch 'backport-ninja-lwyu-ar' into ninja-lwyu-ar
This commit is contained in:
@@ -2,3 +2,4 @@ enable_language(C)
|
||||
set(CMAKE_LINK_WHAT_YOU_USE TRUE)
|
||||
add_executable(main main.c)
|
||||
target_link_libraries(main m)
|
||||
add_library(foo STATIC foo.c)
|
||||
|
||||
@@ -2,3 +2,4 @@ enable_language(CXX)
|
||||
set(CMAKE_LINK_WHAT_YOU_USE TRUE)
|
||||
add_executable(main main.cxx)
|
||||
target_link_libraries(main m)
|
||||
add_library(foo STATIC foo.cxx)
|
||||
|
||||
4
Tests/RunCMake/LinkWhatYouUse/foo.c
Normal file
4
Tests/RunCMake/LinkWhatYouUse/foo.c
Normal file
@@ -0,0 +1,4 @@
|
||||
int foo(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
4
Tests/RunCMake/LinkWhatYouUse/foo.cxx
Normal file
4
Tests/RunCMake/LinkWhatYouUse/foo.cxx
Normal file
@@ -0,0 +1,4 @@
|
||||
int foo()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user