summaryrefslogtreecommitdiffstats
path: root/Tests/FindPackageModeMakefileTest/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Add option to disable FindPackageModeMakefileTestBrad King2016-02-191-1/+2
| | | | | This test does not work in all environments, so add an option to disable it.
* 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.*".
* cmTarget: Deprecate the LOCATION target property with a policy.Stephen Kelly2013-10-111-2/+10
| | | | | | | | | | | | The final location and name of a build-target is not determined until generate-time. However, reading the LOCATION property from a target is currently allowed at configure time. Apart from creating possibly-erroneous results, this has an impact on the implementation of cmake itself, and prevents some major cleanups from being made. Disallow reading LOCATION from build-targets with a policy. Port some existing uses of it in CMake itself to use the TARGET_FILE generator expression.
* Silence make on OpenBSD in FindPackageModeTest(#12508)Alex Neundorf2011-10-121-0/+1
| | | | | | | | | | BSD make doesn't use -v for printing its name and version, and so complains on stderr that this is a bad command line option, used in Tests/FindPackageModeMakefileTest/CMakeLists.txt . Silence stderr to make that ugly output go away. Patch by David Coppy. Alex
* Only enable the test when using GNU makeAlex Neundorf2011-08-171-10/+20
| | | | | | | | | | | | The makefile used in the test uses $(shell ...), which is AFAIK a GNU extension, and will probably not work e.g. with OpenBSD make. According to the FreeBSD make manpage their make has a != assignment, which seems to do something similar, but I don't have such a system around for testing. Also, the point of this test is not to write a portable makefile, but to check whether cmake --find-package prints a correct string. Alex
* Much improved test, should now be executed on all UNIXesAlex Neundorf2011-08-161-13/+11
| | | | | | | | Instead of relying on that some development package is installed on the system, now a tiny library is built, which is the searched and used during the test. Alex
* Fix test on OpenBSD with BSD makeAlex Neundorf2011-08-151-1/+1
| | | | | | | | BSD make doesn't seem to support -C, so do not use it, According to the documentation the working directory is set to CMAKE_CURRENT_BINARY_DIR anyway, so it should work just the same. Alex
* Only run the test if we are using a makefile generator under UNIXAlex Neundorf2011-08-111-1/+1
| | | | Alex
* Add a test for the new --find-package modeAlex Neundorf2011-08-111-0/+22
Alex