This website requires JavaScript.
Explore
Help
Register
Sign In
reactos
/
CMake
Watch
1
Star
0
Fork
0
You've already forked CMake
mirror of
https://github.com/reactos/CMake.git
synced
2024-12-13 22:58:41 +00:00
Code
Issues
Actions
Packages
Projects
Releases
Wiki
Activity
86ec0aca05
CMake
/
Tests
/
WarnUnusedCliUnused
/
empty.cpp
8 lines
77 B
C++
Raw
Normal View
History
Unescape
Escape
CLI: Suppress the unused warning if the key value pair is cached. It is common to specify a CMAKE_TOOLCHAIN_FILE and get a warning for using it despite it not being used. The WarnUnusedCliUnused test relies on the warning being emitted each time cmake is run on an existing build. That behavior is changed by this patch to warn only on the first invokation of CMake, and not on subsequent invokations (because the variable is in the cache with the same value). For that test, a clean target is added which clears the cache and cause the warning to be emitted each time. As the Ninja generator does not support the feature needed to test this, it is not tested with that generator.
2013-05-16 19:51:45 +00:00
#
ifdef _WIN32
__declspec
(
dllexport
)
#
endif
Revise C++ coding style using clang-format Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
2016-05-16 14:34:04 +00:00
int
empty
(
void
)
CLI: Suppress the unused warning if the key value pair is cached. It is common to specify a CMAKE_TOOLCHAIN_FILE and get a warning for using it despite it not being used. The WarnUnusedCliUnused test relies on the warning being emitted each time cmake is run on an existing build. That behavior is changed by this patch to warn only on the first invokation of CMake, and not on subsequent invokations (because the variable is in the cache with the same value). For that test, a clean target is added which clears the cache and cause the warning to be emitted each time. As the Ninja generator does not support the feature needed to test this, it is not tested with that generator.
2013-05-16 19:51:45 +00:00
{
return
0
;
}
Reference in New Issue
Copy Permalink