summaryrefslogtreecommitdiffstats
path: root/Tests/Complex/Executable/complex.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Fix some tests under CFLAGS=-DNDEBUG CXXFLAGS=-DNDEBUGBrad King2022-09-011-1/+1
| | | | Fixes: #23888
* Revise include order using clang-format-6.0Kitware Robot2019-10-011-3/+5
| | | | | Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
* Revise C++ coding style using clang-format-6.0Kitware Robot2018-06-011-26/+26
| | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * 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.
* configure_file: Add support for indented cmakedefineSylvain Joubert2017-07-041-0/+22
| | | | | | | | Optional spaces and/or tabs are now understood between the '#' character and the 'cmakedefine'/'cmakedefine01' words. This indentation is preserved in the output lines. Fixes: #13037
* Add additional <= and >= comparison operatorsChuck Atkins2016-08-091-17/+183
| | | | | This adds the LESS_EQUAL, GREATER_EQUAL, and associated STR and VERSION equivalents to use the combined <= and >= functionality.
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-242/+192
| | | | | | | | | | | | | 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.
* Format include directive blocks and ordering with clang-formatBrad King2016-04-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sort include directives within each block (separated by a blank line) in lexicographic order (except to prioritize `sys/types.h` first). First run `clang-format` with the config file: --- SortIncludes: false ... Commit the result temporarily. Then run `clang-format` again with: --- SortIncludes: true IncludeCategories: - Regex: 'sys/types.h' Priority: -1 ... Commit the result temporarily. Start a new branch and cherry-pick the second commit. Manually resolve conflicts to preserve indentation of re-ordered includes. This cleans up the include ordering without changing any other style. Use the following command to run `clang-format`: $ git ls-files -z -- \ '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' | egrep -z -v '(Lexer|Parser|ParserHelper)\.' | egrep -z -v '^Source/cm_sha2' | egrep -z -v '^Source/(kwsys|CursesDialog/form)/' | egrep -z -v '^Utilities/(KW|cm).*/' | egrep -z -v '^Tests/Module/GenerateExportHeader' | egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' | xargs -0 clang-format -i This selects source files that do not come from a third-party. Inspired-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
* Encoding: Modify tests to work using non-ascii paths.Clinton Stimpson2015-01-091-11/+11
| | | | | | | | | | For complex*, CustomCommand and OutDir tests, non-ascii paths are avoided in test code by using relative paths, and setting the working when running the test. This also avoids the need to internationalize the test code. For RunCMake.GeneratorExpression, use a UTF-8 encoding in file(STRINGS) to retrieve the compiled absolute path correctly.
* Drop compatibility with CMake < 2.4Brad King2013-10-231-3/+3
| | | | | | | | | | | | Drop all behavior activated by setting CMAKE_BACKWARDS_COMPATIBILITY to a value lower than 2.4, and generate an error when projects or the user attempt to do so. In the error suggest using a CMake 2.8.x release. Teach cmake_minimum_required to warn about projects that do not require at least CMake 2.4. They are not supported by CMake >= 3.0. Replace the documentation of CMAKE_BACKWARDS_COMPATIBILITY with a reference to policy CMP0001.
* get_filename_component: Add explicit unit testsBrad King2013-04-161-80/+0
| | | | | Add test RunCMake.get_filename_component to cover cases of the command. Remove redundant coverage of these cases from the "complex" tests.
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-66/+66
| | | | | | | | | | | | | | | | | 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/ \+$//'
* complex: Remove unused option to test CMakeLibBrad King2011-12-231-9/+0
| | | | | Now that the Complex tests do not depend on cmSystemTools or other classes from CMakeLib the COMPLEX_TEST_CMAKELIB option is useless.
* complex: Remove test dependence on cmSystemToolsBrad King2011-12-231-12/+12
| | | | Use C standard 'remove' and POSIX standard 'stat'.
* complex: Move cmSystemTools::UpperCase test to CMakeLibTestsBrad King2011-12-231-14/+0
| | | | | This test belongs in the CMakeLibTests test driver executable which correctly links to CMakeLib.
* complex: Simplify test for single-character exe nameBrad King2011-12-231-35/+7
| | | | | Run the test executable as a custom command instead of depending on cmSystemTools::RunSingleCommand.
* complex: Move GeneratedFileStream test to CMakeLibTestsBrad King2011-12-231-87/+0
| | | | | | This test belongs in the CMakeLibTests test driver executable which correctly links to CMakeLib. Fix incorrect library link order in the Complex tests exposed by this change.
* complex: Remove dynamic loader testsBrad King2011-12-231-61/+1
| | | | | Everything covered by these tests is now covered by the KWSys DynamicLoader test and the Plugin test.
* complex: Remove ancient unused ComplexRelativePaths testBrad King2011-12-231-4/+2
|
* ENH: support parenthesis as arguments and in conditionals feature request #6191Ken Martin2008-06-261-0/+6
|
* ENH: Implement linking with paths to library files instead of -L and -l ↵Brad King2008-01-221-115/+3
| | | | | | | | | | | | | | | | | separation. See bug #3832 - This is purely an implementation improvement. No interface has changed. - Create cmComputeLinkInformation class - Move and re-implement logic from: cmLocalGenerator::ComputeLinkInformation cmOrderLinkDirectories - Link libraries to targets with their full path (if it is known) - Dirs specified with link_directories command still added with -L - Make link type specific to library names without paths (name libfoo.a without path becomes -Wl,-Bstatic -lfoo) - Make directory ordering specific to a runtime path computation feature (look for conflicting SONAMEs instead of library names) - Implement proper rpath support on HP-UX and AIX.
* ENH: Make per-configuration COMPILE_DEFINITIONS_<CONFIG> directory property ↵Brad King2008-01-181-1/+5
| | | | initialized from parent.
* ENH: fix leakBill Hoffman2007-08-211-0/+1
|
* BUG: Disable test of feature that is not documented or implemented everywhere.Brad King2007-05-161-0/+2
|
* BUG: Fixed cmLocalVisualStudio7Generator to deal with quotes in macro ↵Brad King2007-05-091-0/+13
| | | | definitions properly. This addresses bug#4983.
* ENH: Testing new target properties RUNTIME_OUTPUT_DIRECTORY, ↵Brad King2007-03-121-2/+7
| | | | LIBRARY_OUTPUT_DIRECTORY, and ARCHIVE_OUTPUT_DIRECTORY. This is an incremental fix for bug#2240 and bug#4210.
* COMP: Fixed typo: CMAKE_TEST_CMAKELIB -> COMPLEX_TEST_CMAKELIB.Brad King2006-10-221-5/+5
|
* ENH: Added explicit name for option to test CMakeLib. Added option to ↵Brad King2006-10-191-5/+5
| | | | disable testing of CMakeLib if system utility libraries are used until linking made easier.
* BUG: Fix link flags on cygwin shared libraries. This requires that the ↵Brad King2006-10-051-1/+1
| | | | shared library prefix be supported in the link library regex.
* ENH: added test for elseifKen Martin2006-09-221-0/+6
|
* ENH: Added test for linking to a static library that is next to a shared ↵Brad King2006-09-151-1/+18
| | | | library. See bug#1644 for related changes.
* BUG: Fix REMOVE_DEFINITIONS command to not remove substrings.Brad King2006-05-231-0/+12
|
* ENH: remove duplicate file name test because it fails on xcodeBill Hoffman2006-04-171-0/+4
|
* ENH: allow multiple files with the same name in different sub dirs testBill Hoffman2006-04-171-1/+13
|
* BUG: Fixed cmOrderLinkDirectories to make sure cmake-built libraries are ↵Brad King2006-04-041-1/+3
| | | | found properly. Also taking libraries that will be built but may not yet exist into account. The per-configuration subdirectories that are included by generators in the link path are checked for conflicting libraries also. Potentially conflicting libraries that are actually symlinks back to the desired library are no longer considered conflicting, which avoids bogus impossible ordering warnings.
* ENH: change library order to use a vectorBill Hoffman2006-04-041-0/+4
|
* ENH: added testing for new featuresKen Martin2006-03-221-0/+36
|
* BUG: Removed compiled-in CMAKE_SHARED_MODULE_PREFIX and ↵Brad King2006-03-161-2/+2
| | | | CMAKE_SHARED_MODULE_SUFFIX for loaded commands in favor of using the settings from the platform files.
* ENH: Cleanup DynamicLoader so that the symbols have more consistent names, ↵Andy Cedilnik2006-03-161-4/+5
| | | | start using dynamic loader from kwsys in CMake
* BUG: Avoid case problems on windows.Brad King2006-02-091-0/+9
|
* ENH: add COMPILE_FLAGS to targetsBill Hoffman2006-01-251-3/+17
|
* ENH: add support for watcom wmake and wcl386Bill Hoffman2006-01-171-52/+69
|
* BUG: Sweeping changes to cleanup computation of target names. This shouldBrad King2006-01-131-12/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | fix many bugs related to target names being computed inconsistently. - Centralized computation of a target's file name to a method in cmTarget. Now that global knowledge is always available the *_CMAKE_PATH cache variables are no longer needed. - Centralized computation of link library command lines and link directory search order. - Moved computation of link directories needed to link CMake targets to be after evaluation of linking dependencies. This also removed alot of duplicate code in which each version had its own bugs. This commit is surrounded by the tags CMake-TargetNameCentralization1-pre and CMake-TargetNameCentralization1-post so make the large set of changes easy to identify.
* ENH: add new cmakedefine01 feature from bug report 2603Bill Hoffman2006-01-031-1/+16
|
* ENH: fix bug 2087 lib prefix stripped off on windowsBill Hoffman2005-08-101-0/+1
|
* ENH: do not test for c and cxx flags on visual studio as it does not work yetBill Hoffman2005-07-291-11/+17
|
* ENH: add new test to make sure c and cxx flags are going to the right filesBill Hoffman2005-07-291-0/+17
|
* ENH: Do 4 filesAndy Cedilnik2005-07-141-12/+28
|
* ENH: Add a test for cmGeneratedFileStreamAndy Cedilnik2005-07-141-0/+69
|
* ENH: added testing of the WHILE commandKen Martin2005-06-301-0/+12
|
* ENH: try to see if there is still a problemBill Hoffman2005-03-111-1/+1
|