Stop cmake warning that we are using an internal target name.
* CMakeLists.txt: Rename "test" to "tests" * Makefile.in: Chase target name, add a compatibility target for the old name.
This commit is contained in:
parent
1ad02284bd
commit
b7224d6da3
2 changed files with 10 additions and 6 deletions
|
|
@ -151,9 +151,9 @@ include(GlibCompileResourcesSupport)
|
|||
# Unit tests.
|
||||
#
|
||||
# We don't use CMake's enable_testing/add_test built-ins because they
|
||||
# use ctest.
|
||||
add_custom_target(test ALL geary-test)
|
||||
add_dependencies(test geary-test)
|
||||
# use ctest. It's not called "test" because that is cmake reserved.
|
||||
add_custom_target(tests ALL geary-test)
|
||||
add_dependencies(tests geary-test)
|
||||
|
||||
#
|
||||
# Uninstall target
|
||||
|
|
|
|||
10
Makefile.in
10
Makefile.in
|
|
@ -37,12 +37,16 @@ distclean: clean
|
|||
@-rm -rf $(BUILD_DIR)
|
||||
@-rm -f Makefile
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
.PHONY: tests
|
||||
tests:
|
||||
@$(MAKE) -C $(BUILD_DIR) $@
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
@$(MAKE) -C $(BUILD_DIR) tests
|
||||
|
||||
.PHONY: dist
|
||||
dist: test
|
||||
dist: tests
|
||||
@$(MAKE) -C $(BUILD_DIR) dist
|
||||
@cp build/*.xz .
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue