Skip to content

Commit

Permalink
Improve word choice
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Dec 1, 2023
1 parent b265307 commit 506d88b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion AboutTheseModules.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# - Dummy module containing information about these modules for the HELP file
# - Stub module containing information about these modules for the HELP file
# This file documents a snapshot of the cmake-modules available from
# http://github.com/rpavlik/cmake-modules/
# The latest version of these modules can always be found there.
Expand Down
9 changes: 5 additions & 4 deletions Findcppcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
# SPDX-License-Identifier: BSL-1.0

file(TO_CMAKE_PATH "${CPPCHECK_ROOT_DIR}" CPPCHECK_ROOT_DIR)
Expand Down Expand Up @@ -65,10 +66,10 @@ set(CMAKE_FIND_APPBUNDLE ${_oldappbundlesetting})

# Find out where our test file is
get_filename_component(_cppcheckmoddir ${CMAKE_CURRENT_LIST_FILE} PATH)
set(_cppcheckdummyfile "${_cppcheckmoddir}/Findcppcheck.cpp")
if(NOT EXISTS "${_cppcheckdummyfile}")
set(_cppchecktestfile "${_cppcheckmoddir}/Findcppcheck.cpp")
if(NOT EXISTS "${_cppchecktestfile}")
message(FATAL_ERROR
"Missing file ${_cppcheckdummyfile} - should be alongside Findcppcheck.cmake, can be found at https://github.com/rpavlik/cmake-modules")
"Missing file ${_cppchecktestfile} - should be alongside Findcppcheck.cmake, can be found at https://github.com/rpavlik/cmake-modules")
endif()

function(_cppcheck_test_arg _resultvar _arg)
Expand All @@ -80,7 +81,7 @@ function(_cppcheck_test_arg _resultvar _arg)
"${CPPCHECK_EXECUTABLE}"
"${_arg}"
"--quiet"
"${_cppcheckdummyfile}"
"${_cppchecktestfile}"
RESULT_VARIABLE
_cppcheck_result
OUTPUT_QUIET
Expand Down
2 changes: 1 addition & 1 deletion Findcppcheck.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* \file Findcppcheck.cpp
* \brief Dummy C++ source file used by CMake module Findcppcheck.cmake
* \brief Test C++ source file used by CMake module Findcppcheck.cmake
*
* \author
* Ryan Pavlik, 2009-2010
Expand Down
4 changes: 2 additions & 2 deletions GetMSVCVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ function(get_msvc_major_version _var)
if(NOT MSVC)
return()
endif()
get_msvc_major_minor_version(_vs_ver _dummy)
get_msvc_major_minor_version(_vs_ver _unused)
set(${_var} ${_vs_ver} PARENT_SCOPE)
endfunction()

function(get_msvc_minor_version _var)
if(NOT MSVC)
return()
endif()
get_msvc_major_minor_version(_dummy _vs_ver)
get_msvc_major_minor_version(_unused _vs_ver)
set(${_var} ${_vs_ver} PARENT_SCOPE)
endfunction()

Expand Down

0 comments on commit 506d88b

Please sign in to comment.