Sean McBride
ed675a92a1
create_test_sourcelist: Fix linkage in generated test driver code
...
Mark private function/global with static linkage.
2013-11-12 09:27:11 -05:00
Matt McCormick
7eddefd8f1
TestDriver.cxx.in: Untrusted array index read.
...
As reported by Coverity Scan, if the configured file contains a #include,
Untrusted array index read
The array index could be controlled by an attacker, leading to reads outside
the bounds of the array.
In main: Read from array at index computed using an unscrutinized value from
an untrusted source (CWE-129)
CID 1081283 (#1 of 1): Untrusted array index read (TAINTED_SCALAR)
25. tainted_data: Using tainted variable "testToRun" as an index into an array
"cmakeGeneratedFunctionMapEntries".
2013-10-16 10:11:20 +00:00
Stephen Kelly
2a6bd96c13
Fix config-specific INCLUDE_DIRECTORIES in multi-config generators
...
Commit 08cb4fa4
(Process generator expressions in the
INCLUDE_DIRECTORIES property, 2012-09-18) contained an incorrect
assumption that CMAKE_BUILD_TYPE was set on the makefile for each
generated configuration in multi-config generators. Fix that by making
the GetIncludeDirectories API depend on the config.
2012-10-17 16:24:14 -04:00
Kitware Robot
77543bde41
Convert CMake-language commands to lower case
...
Ancient CMake versions required upper-case commands. Later command
names became case-insensitive. Now the preferred style is lower-case.
Run the following shell code:
cmake --help-command-list |
grep -v "cmake version" |
while read c; do
echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done >convert.sed &&
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
2012-08-13 14:19:16 -04:00
Kitware Robot
7bbaa4283d
Remove trailing whitespace from most CMake and C/C++ code
...
Our Git commit hooks disallow modification or addition of lines with
trailing whitespace. Wipe out all remnants of trailing whitespace
everywhere except third-party code.
Run the following shell code:
git ls-files -z -- \
bootstrap doxygen.config '*.readme' \
'*.c' '*.cmake' '*.cpp' '*.cxx' \
'*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \
'*.mm' '*.pike' '*.py' '*.txt' '*.vim' |
egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' |
egrep -z -v '^(Modules/CPack\..*\.in)' |
xargs -0 sed -i 's/ \+$//'
2012-08-13 14:18:39 -04:00
Eric NOULARD
6ad0f0405b
Update CPackConfig template.
...
Remove variable documentation from the template in order to
avoid multiple location for doc update. Users can now retrieve
CPACK_xxx variable documentation from the command line.
2012-02-25 23:07:07 +01:00
Eric NOULARD
b7457de4ea
CPack fix template too
2011-09-09 14:12:35 +02:00
Brad King
fe971d97ca
Add STATIC_LIBRARY_FLAGS_<CONFIG> property ( #10768 )
...
This is a per-configuration version of STATIC_LIBRARY_FLAGS.
2010-05-28 11:09:10 -04:00
Brad King
90b8164e44
Use per-config output dir in VS 6 templates
...
This commit removes use of configuration-less cmTarget::GetDirectory()
by the VS 6 generator (except for compatibility with user templates).
We replace OUTPUT_DIRECTORY_<CONFIG> tokens in the templates using the
per-configuration result of cmTarget::GetDirectory(config).
2009-10-28 12:18:55 -04:00
Brad King
82c8b48c2a
Add '#!/bin/sh' to cygwin-package.sh
...
This commit adds '#!/bin/sh' to the top of the cygwin-package.sh.in
script. All executable interpreted scripts should have this directive.
Patch from Modestas Vainius. See issue #9659 .
2009-10-05 10:28:57 -04:00
Brad King
4867b712f9
Fix Windows GUI implib and image version in VS 6
...
These commits:
Adding image version number (major.minor) property to
windows binaries.
Added support for import libraries created by executable
and module targets.
added content to Templates/EXEHeader.dsptemplate that should also have
been added to Templates/EXEWinHeader.dsptemplate for the VS6 generator.
This commit corrects the error. See issue #9586 .
2009-09-25 15:46:37 -04:00
Brad King
071ce33ec9
ENH: Install all Modules and Templates
...
This removes the file-wise installation rules for Modules and Templates
and instead installs the whole directories. This approach is much less
error-prone. The old approach was left from before CMake had the
install(DIRECTORY) command.
2009-07-24 13:17:41 -04:00
Brad King
43669f0ef2
BUG: Avoid cmTarget::GetDirectory for utilities
...
Since utility targets have no main output files like executables or
libraries, they do not define an output directory. This removes a call
to cmTarget::GetDirectory from cmLocalVisualStudio{6,7}Generator for
such targets.
2009-07-03 10:33:49 -04:00
David Cole
95a6feaa66
COMP: Don't emit old style cast warning when configured as C++ but still allow being configured as C. Thanks to Monsieur Francois Bertel for the patch.
2008-12-09 10:56:41 -05:00
Bill Hoffman
a50cdcb5a6
BUG: fix for rc and vs6
2008-12-03 15:35:35 -05:00
Amitha Perera
47aa926523
BUG: the return value of scanf should not be ignored
2008-11-25 09:52:21 -05:00
Bill Hoffman
4ed4f5a7d4
ENH: fix failing tests
2008-09-10 10:36:45 -04:00
Bill Hoffman
4eaac32db6
BUG: fix bug OUTPUT_LIBNAME_EXPORTS done differently now
2008-09-10 10:10:25 -04:00
Bill Hoffman
364ac7e386
BUG: fix empty /D option for vs6, fix for 7580
2008-09-09 13:04:30 -04:00
David Cole
ca2a16c0a2
ENH: Add code to support calling the VS reload macro from Visual Studio 7.1 and 9.0 in addition to 8.0 sp1... Make new macros file with VS 7.1 so that it can be read by 7.1 and later. VS 7.1 does not appear to run the macros while a build is in progress, but does not return any errors either, so for now, the reload macro is not called when using 7.1. If I can figure out how to get 7.1 to execute the macro, I will uncomment the code in cmGlobalVisualStudio71Generator::GetUserMacrosDirectory() to activate executing the macros in VS 7.1, too.
2008-02-15 11:49:58 -05:00
David Cole
fa5f8967c1
BUG: Install the vsmacros file.
2007-11-21 15:33:35 -05:00
Brad King
13e96b1403
ENH: Added StopBuild macro.
2007-11-19 13:44:10 -05:00
David Cole
867de7fc67
ENH: Add ability to call Visual Studio macros from CMake. Add a CMake Visual Studio macro to reload a solution file automatically if CMake makes changes to .sln files or .vcproj files. Add code to call the macro automatically for any running Visual Studio instances with the .sln file open at the end of the Visual Studio Generate call. Only call the macro if some .sln or .vcproj file changed during Generate. Also, add handling for REG_EXPAND_SZ type to SystemTools::ReadRegistryValue - returned string has environment variable references expanded.
2007-11-16 07:01:58 -05:00
Brad King
e5bb99e010
ENH: Removed dependency on Templates/CMakeWindowsSystemConfig.cmake which is no longer used. Also removed the file itself.
2007-11-09 15:08:56 -05:00
Bill Hoffman
bcfa890c02
ENH: add package script for cmake project
2007-10-29 21:10:49 -04:00
Alexander Neundorf
7f11536704
ENH: now target names can be used in add_custom_command() and
...
add_custom_target() as COMMAND, and cmake will recognize them and replace
them with the actual output path of these executables. Also the dependency
will be added automatically. Test included.
ENH: moved TraceVSDependencies() to the end of GlobalGenerator::Configure(),
so it is done now in one central place
Alex
2007-05-09 08:25:45 -04:00
Brad King
fc7c433463
ENH: Added support for import libraries created by executable and module targets. The module import libraries should never be used but some windows compilers always create them for .dll files since there is no distinction from shared libraries on that platform. The executable import libraries may be used to create modules that when loaded bind to symbols from the executables. This is an enhancement related to bug#4210 though not requested by it explicitly.
2007-03-19 10:00:36 -04:00
Brad King
80e6cade7a
ENH: Implemented use of cmTarget::GetDirectory() in Visual Studio 6 generator. This is an incremental fix for bug#4210.
2007-03-09 16:25:16 -05:00
Brad King
b155f3aa1c
ENH: Adding image version number (major.minor) property to windows binaries. Default is 0.0, but the VERSION target property may change the value. Windows now has first-class support for dll and exe versioning. This addresses bug#1219.
2006-10-16 18:17:14 -04:00
Andy Cedilnik
3006560d86
ENH: Add template of ctest script
2006-04-28 11:58:16 -04:00
Andy Cedilnik
4d9634c3e5
ENH: Simplify the generic instructions
2006-04-20 09:54:45 -04:00
Brad King
864c0292d5
BUG: VS6 generator now uses ComputeLinkInformation just like all other generators.
2006-04-19 10:34:41 -04:00
Brad King
428b4c9244
ENH: Updated VS6 generator to use target.GetFullName() to compute target file names.
2006-04-18 11:45:31 -04:00
Andy Cedilnik
c836be6f7b
ENH: Start adding support for packaging component and to package into a subdirectory
2006-04-14 08:58:13 -04:00
Andy Cedilnik
c7f0940b4e
ENH: Install cpack files
2006-03-01 11:55:04 -05:00
Andy Cedilnik
b25820ebd4
ENH: Add resource files for PackageMaker
2006-02-28 14:18:13 -05:00
Andy Cedilnik
a87de1e1cd
ENH: Add generic instructions
2006-02-28 14:06:39 -05:00
Andy Cedilnik
ee227d3af5
ENH: Several packaging issues. Allow random variables to be passed to cpack (anything starting with CPACK_, add preinstall to the list of dependencies for package, fix typos
2006-02-27 10:58:20 -05:00
Andy Cedilnik
1d96f839d7
ENH: Several NSIS features
2006-02-23 09:38:40 -05:00
Andy Cedilnik
3b7011b9f6
ENH: Fix icons
2006-02-16 15:35:05 -05:00
Andy Cedilnik
c9ecd78237
ENH: Cleanup
2006-02-14 14:28:43 -05:00
Andy Cedilnik
3bce601c41
ENH: Improved support for icons, random directories, etc...
2006-02-14 10:28:40 -05:00
Andy Cedilnik
2a6bc87567
ENH: Some improvements: specify link, copy msvc libraries, fix install directory
2006-01-11 11:08:15 -05:00
Andy Cedilnik
f219d3c263
ENH: Pass CPACK_PACKAGE_FILE_NAME
2006-01-09 18:20:50 -05:00
Andy Cedilnik
0c302a7e5f
ENH: Fix test for cpack variables, add support for icon on windows
2006-01-09 11:26:31 -05:00
Andy Cedilnik
5358809a5c
ENH: More CPack stuff and fix zlib compression
2006-01-04 15:14:09 -05:00
Brad King
05e6c3f3ba
BUG: Fixed OUTPUT_NAME feature for VS6 generator. It was not working for Debug builds and was not paying attention to the executable output path.
2005-08-19 17:57:36 -04:00
Bill Hoffman
712f4b3d01
FIX: fixes bugs 1152 and 1154
2005-02-11 14:13:58 -05:00
Bill Hoffman
ff7757e34c
make sure tests flush output
2004-07-16 15:18:42 -04:00
Bill Hoffman
8c656dc40d
BUG: remove unused variable CMAKE_OBJECT_FILE_SUFFIX from cmake
2004-07-09 13:50:45 -04:00