summaryrefslogtreecommitdiffstats
path: root/Tests/Complex/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Clang: For MSVC ABI do not use modes older than C++14Brad King2019-07-241-5/+0
| | | | | | | | | | | | | | | | | | | | Since commit d44c0db0b2 (clang: setup correct configuration in gnu mode, 2019-02-20, v3.15.0-rc1~41^2~5) we support the GNU-like Clang that targets the MSVC ABI. However, Clang cannot compile with the MSVC standard library unless it runs in a mode aware of C++14 (since MSVC itself does not even have a lower mode). When `CMAKE_CXX_STANDARD` is set to 98 or 11, use C++14 anyway. Since Clang's default mode is aware of C++14, another option is to not add any flags for 98 or 11. However, if a future Clang version ever defaults to a higher C++ standard, setting the standard to 98 or 11 should at least not use a mode higher than 14. Also revert test updates from commit 4819ff9647 (Tests: fix failures with gnu mode clang on windows, 2019-03-21, v3.15.0-rc1~41^2~3) that were meant to work around the standard selection problem. Fixes: #19496
* Tests: fix failures with gnu mode clang on windowsZsolt Parragi2019-05-241-0/+5
| | | | | | | | | Root causes were: * Using incorrect conditions (assuming MSVC-like command line mode) * Trying to compile the MSVC STL in C++11 mode, when parts of it require C++14 or enabling MS extensions in clang. * Missing flush in a testcase using stdout in a dll and a main part with static crt
* HP-UX: Drop support for building CMake on HP-UXBrad King2017-08-071-7/+0
| | | | | | | | CMake will soon require both C++11 and libuv to build. Neither of these works on HP-UX, so unfortunately we need to drop support for the platform until someone can get them working. Issue: #17137
* configure_file: Add support for indented cmakedefineSylvain Joubert2017-07-041-0/+2
| | | | | | | | 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-0/+6
| | | | | This adds the LESS_EQUAL, GREATER_EQUAL, and associated STR and VERSION equivalents to use the combined <= and >= functionality.
* Use string(APPEND) in TestsDaniel Pfeifer2016-07-271-2/+2
| | | | | | | Automate with: find Tests -type f -print0 | xargs -0 perl -i -0pe \ 's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
* Source: Remove long-unused .cvsignore fileBrad King2016-07-081-1/+1
|
* Tests: fix Complex building on Clang/C2Mariusz Pluciński2016-03-101-0/+7
|
* cmState: Restore renamed commands on cleanup.Stephen Kelly2015-07-121-0/+7
| | | | | | | | | | | Commit v3.3.0-rc1~196^2~7 (cmake: Simplify command clean up loop., 2015-04-12) introduced a bug that built-in commands which were renamed no longer had their original name restored when cleanup is performed between configure runs. Check for that and restore the commands with their original name. Extend the complex test for this. That test is run by ctest with the --build-two-config command line option.
* Tests: Set policies in 'complex' testsBrad King2014-07-221-0/+15
| | | | | | These tests cover the OLD behavior of some policies. Set them to OLD to avoid warnings in the test output. Leave a comment that explains why this is done here but not recommended in general.
* tests: allow RelWithDebInfo and MinSizeRel configs to workBen Boeckel2014-06-051-0/+8
|
* HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwardsRolf Eike Beer2014-04-251-0/+15
| | | | | | Old versions of aCC need a special compiler flag to get full C++98 template support as e.g. CMake itself or the Complex and ComplexOneConfig tests need. The same versions need a special flag to get a proper C++ library, too.
* Replace MATCHES test on numbers with EQUAL testRolf Eike Beer2014-04-141-1/+1
| | | | | The MATCHES tests were actually wrong, as "a4b" and "42" would also cause a match when it should not.
* Remove .* expressions from beginning and end of MATCHES regexsRolf Eike Beer2014-04-141-1/+1
| | | | | | | | | All these expressions work the same: "foo" ".*foo.*" "^.*foo.*$" This assumes that the "Intel*" expressions were meant to be "Intel.*".
* Drop use of configure_file IMMEDIATE optionDaniele E. Domenichelli2013-11-131-3/+3
| | | | | | Since commit 7d47c693 (Drop compatibility with CMake < 2.4, 2013-10-08) we no longer need to use the configure_file IMMEDIATE option to support compatibility modes less than 2.0.
* Drop compatibility with CMake < 2.4Brad King2013-10-231-1/+1
| | | | | | | | | | | | 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.
* replace string(... MATCHES "^const$) with string(... STREQUAL "const")Rolf Eike Beer2013-06-021-8/+5
|
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-44/+44
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-175/+175
| | | | | | | | | | | | | | | | | 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
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-17/+17
| | | | | | | | | | | | | | | | | 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/ \+$//'
* Find_library(): allow searching for versioned shared objectsRolf Eike Beer2012-02-181-1/+31
| | | | | | | | | This did not work because find_library() did only treat the given name as complete filename if is matched "PREFIX.*SUFFIX": find_library(MYLIB libfoo.so.2) Now it is also taken as a whole if the name matches "PREFIX.*SUFFIX\..*".
* complex: Remove unused option to test CMakeLibBrad King2011-12-231-5/+0
| | | | | Now that the Complex tests do not depend on cmSystemTools or other classes from CMakeLib the COMPLEX_TEST_CMAKELIB option is useless.
* Make Complex test of CMakeLib more optionalBrad King2009-10-071-7/+2
| | | | | | | Previously we passed inputs to the decision to each Complex test and let the test source decide. This commit moves the decision out of the tests and makes it an option() in their source. This makes it possible to build the Complex tests from outside the CMake test tree.
* ENH: Remove CMAKE_ANSI_CFLAGS from testsBrad King2009-07-081-7/+0
| | | | | As of CMake 2.6 this variable is not defined, and the ANSI flags for the HP compiler are simply hard-coded in the default C flags.
* ENH: Allow projects to disable per-rule echo linesBrad King2009-03-161-2/+2
| | | | | | | | | This creates global property RULE_MESSAGES which can be set to disbale per-rule progress and action reporting. On Windows, these reports may cause a noticable delay due to the cost of starting extra processes. This feature will allow scripted builds to avoid the cost since they do not need detailed information anyway. This replaces the RULE_PROGRESS property created earlier as it is more complete. See issue #8726.
* ENH: Allow projects to disable per-rule progressBrad King2009-03-161-0/+3
| | | | | | | | This creates global property RULE_PROGRESS which can be set to disbale per-rule progress reporting. On Windows, progress reports may cause a noticable delay due to the cost of starting an extra process. This feature will allow scripted builds to avoid the cost since they do not need detailed progress anyway. See issue #8726.
* ENH: Add cmake_policy(GET) command modeBrad King2008-08-181-0/+5
| | | | | | | It is likely that projects or CMake modules in the future will need to check the value of a policy setting. For example, if we add a policy that affects the results of FindXYZ.cmake modules, the module code will need to be able to check the policy.
* ENH: support parenthesis as arguments and in conditionals feature request #6191Ken Martin2008-06-261-0/+6
|
* ENH: Add "if(POLICY policy-id)" option for IF command.Brad King2008-03-201-0/+5
| | | | | | | | | | | - This will help projects support multiple CMake versions. - In order to set a policy when using a newer CMake but still working with an older CMake one may write if(POLICY CMP1234) cmake_policy(SET CMP1234 NEW) endif(POLICY CMP1234) - Note that since CMake 2.4 does not have if(POLICY) supporting it will also require using "if(COMMAND cmake_policy)"
* ENH: Make per-configuration COMPILE_DEFINITIONS_<CONFIG> directory property ↵Brad King2008-01-181-0/+4
| | | | initialized from parent.
* ENH: user more memory for parser and add test to complex that sets a huge stringBill Hoffman2007-07-201-0/+1
|
* ENH: Testing new target properties RUNTIME_OUTPUT_DIRECTORY, ↵Brad King2007-03-121-7/+3
| | | | LIBRARY_OUTPUT_DIRECTORY, and ARCHIVE_OUTPUT_DIRECTORY. This is an incremental fix for bug#2240 and bug#4210.
* ENH: Added test case for bug#3966.Brad King2006-10-301-0/+11
|
* ENH: Added explicit name for option to test CMakeLib. Added option to ↵Brad King2006-10-191-0/+9
| | | | disable testing of CMakeLib if system utility libraries are used until linking made easier.
* BUG: Test -isystem without affecting other tests. Made separate ↵Brad King2006-10-051-1/+2
| | | | Library/SystemDir for this purpose.
* ENH: Adding SYSTEM option to INCLUDE_DIRECTORIES command. This addresses ↵Brad King2006-10-051-2/+2
| | | | bug #3462.
* ENH: added test for elseifKen Martin2006-09-221-0/+39
|
* BUG: INCLUDE_DIRECTORIES should interpret relative path arguments with ↵Brad King2006-05-121-1/+1
| | | | respect to the current source directory.
* BUG: Disabling an EXECUTE_PROCESS test until problems on UNIX systems are fixed.Brad King2006-05-081-13/+16
|
* ENH: Strengthened EXECUTE_PROCESS output check test.Brad King2006-02-101-4/+4
|
* ENH: Added test for new EXECUTE_PROCESS command.Brad King2006-02-031-0/+23
|
* ENH: add new cmakedefine01 feature from bug report 2603Bill Hoffman2006-01-031-0/+2
|
* BUG: Flush the EXECUTABLE and LIBRARY output path to internalAndy Cedilnik2006-01-021-2/+2
|
* ENH: added testing of the WHILE commandKen Martin2005-06-301-0/+5
|
* ENH: remove requirements on 1.2Ken Martin2005-06-081-1/+1
|
* ENH: shift to using ADD_SUBDIRECTORYKen Martin2005-06-081-1/+2
|
* ENH: Added partial test for include regular expressions.Brad King2005-02-071-1/+1
|
* ENH: Add ARGV and ARGN support to MACRO command. ARGV is the list of all ↵Andy Cedilnik2004-04-291-0/+15
| | | | arguments and ARGN is the list of all nonexpected arguments
* added tests for var args with macrosKen Martin2004-04-261-0/+13
|
* ENH: Add test for REMOVE_DEFINITIONAndy Cedilnik2004-04-151-11/+12
|