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
Bill Hoffman
b6466061cb
ENH: add NDEBUG to windows release builds for both ide and nmake
2004-06-14 12:16:25 -04:00
Bill Hoffman
a613100b1e
BUG: remove debug pop hacks, also remove duplicate call to argvc function
2004-05-08 14:55:07 -04:00
Ken Martin
c10cb4db5a
fix warning maybe
2004-05-07 08:35:46 -04:00
Ken Martin
f299f4ae9c
fix warning
2004-05-06 08:51:36 -04:00
Bill Hoffman
7eab2e4235
ENH: remove unused variable
2004-04-30 11:36:01 -04:00
Bill Hoffman
98da4d31f8
BUG: add missing install file
2004-04-30 08:02:44 -04:00
Bill Hoffman
e539cf9f7c
ENH: make test driver more flexible by using a configured file instead of generating all the code. fixes bug 28
2004-04-28 12:31:18 -04:00
Andy Cedilnik
56a826968f
ENH: With new install framework we don't need install-sh any more
2004-04-26 13:42:36 -04:00
Bill Hoffman
71b57bc454
BUG: fix for bug 769 CMAKE_STANDARD_LIBRARIES now used in ides
2004-04-23 16:26:21 -04:00
Bill Hoffman
7b576866b7
ENH: add support for static library property STATIC_LIBRARY_FLAGS
2004-04-22 16:58:04 -04:00
Andy Cedilnik
9ac968174e
ENH: Handle make install target on Visual Studio 6 and 7 and install templates
2004-04-15 13:09:24 -04:00
Andy Cedilnik
368d7f7c18
ENH: Attempt to add debug library postfix for visual studio 6
2003-10-31 16:55:49 -05:00
Bill Hoffman
ba707ce32d
Fix for BUG: 316
2003-10-31 16:53:01 -05:00
Bill Hoffman
4d2ca08bc7
ENH: allow UNICODE to be specifed in the cxx flags and if not default to MBCS
2003-10-16 10:32:47 -04:00
Brad King
a1bb1a4712
ENH: Added optional configuration of data/doc/man dirs. This will be useful for package maintainers.
2003-07-21 16:38:53 -04:00
Bill Hoffman
feb5efa1b0
fix for new custom commands
2003-06-04 13:54:20 -04:00
Brad King
5bb1a79c9f
ENH: Support for spaces in paths during make install.
2003-01-17 18:01:05 -05:00
Bill Hoffman
5a5b549b80
ENH: fix install target for templates
2003-01-07 13:05:24 -05:00
Bill Hoffman
4e02efbfe8
remove unused files
2003-01-07 12:54:40 -05:00
Brad King
4e6ad941e9
ENH: Visual Studio 6 and 7 generators now set CMAKE_CONFIGURATION_TYPES to be a semicolon-separated list of configurations that will be built.
2002-12-20 12:59:18 -05:00
Yves Starreveld
9eed6b91cf
ERR: Remove references to files removed 4 days ago
2002-12-08 14:25:27 -05:00
Bill Hoffman
de316cac05
remove unused files
2002-12-03 15:24:03 -05:00
Andy Cedilnik
0930c14b04
Use CMake icon on Mac
2002-11-06 16:05:14 -05:00
Andy Cedilnik
c45fc1e4b3
Attempt to automate apple gui generation
2002-11-04 14:50:32 -05:00
Andy Cedilnik
1b7ec9e2f7
Revert X11 stuff until other steps are done
2002-10-31 10:36:02 -05:00
Andy Cedilnik
5e2cc830f8
Remove X11 stuff
2002-10-29 13:34:37 -05:00
Sebastien Barre
fe100ef263
ENH: mark some vars as advanced (and resort the list)
2002-10-10 10:45:34 -04:00
Sebastien Barre
396f916a42
ENH: nmake now uses incremental linking as Msdev does. Faster build (linking a static vtk.exe or paraview.exe could take more than 10 minutes)
2002-10-06 15:10:21 -04:00
Andy Cedilnik
be6a5696ba
Make borland pass all the tests on XP (and 2000?)
2002-09-30 07:09:31 -04:00
Andy Cedilnik
fa1418fbd7
Cleanup configure scripts
2002-09-27 14:12:33 -04:00
Ken Martin
9d59d651a1
now uses TryCompile
2002-09-13 11:09:07 -04:00
Andy Cedilnik
bfdf8f7dcd
Remove Mark_AS_ADVANCED for some variables that do not exist
2002-09-11 13:27:06 -04:00
Brad King
2905892334
ENH: Improved configure test implementations by using AC_TRY_COMPILE.
2002-09-06 17:19:18 -04:00
Bill Hoffman
b0fa5117bf
fix comment
2002-09-06 11:47:51 -04:00
Bill Hoffman
6046060714
ENH: add include paths to rc program for resource generation
2002-08-28 14:33:12 -04:00
Bill Hoffman
408361af51
try another flag for the dec compiler...
2002-08-23 17:00:14 -04:00
Bill Hoffman
b5cff36fb7
BUG: fix for OSF compiler to use ansi mode for streams
2002-08-22 11:38:06 -04:00
Ken Martin
8dfb3d3454
fixed some empty descriptions
2002-07-19 15:49:59 -04:00
Brad King
1e75dd1212
ERR: Install for CXXCMakeSystemConfig.cmake and CCMakeSystemConfig.cmake need .in extension.
2002-07-15 09:23:17 -04:00
Brad King
38bfada11d
ERR: Ran autoconf on corresponding fixes to configure.in and cxxconfigure.in.
2002-06-21 08:42:40 -04:00
Bill Hoffman
a39a03c4d4
fix for sstream
2002-06-21 08:39:01 -04:00
Brad King
17e3d6c784
BUG: CMAKE_NO_ANSI_STRING_STREAM needs to be copied from the cxxconfigure results.
2002-06-20 10:19:59 -04:00
Brad King
27a2cad0fc
ENH: Re-ran autoconf to include changes to corresponding configure input. This adds a test for the availability of sstream.
2002-06-19 15:09:33 -04:00
Brad King
ff76604e80
ENH: Added test for sstream header. Defines CMAKE_NO_ANSI_STRING_STREAM if the header doesn't exist.
2002-06-19 15:05:14 -04:00
Bill Hoffman
06a6136b25
ENH: remove -fPIC for AIX gnu
2002-04-30 16:58:07 -04:00
Bill Hoffman
0f9ee5bd0a
use multiple rpath options for sgi
2002-04-29 08:27:58 -04:00
Bill Hoffman
3dd66f9698
correct c flags for shared links
2002-04-26 12:42:48 -04:00
Bill Hoffman
73c7caa774
BUG: fix shared links for cc on hp
2002-04-26 12:21:13 -04:00
Sebastien Barre
6083e3c127
ENH: make CMake less verbose/precious
2002-04-22 15:16:54 -04:00
Bill Hoffman
00482fa8e6
more advanced values
2002-04-17 08:15:44 -04:00
Bill Hoffman
2c276fcb13
*** empty log message ***
2002-04-08 15:01:33 -04:00