Skip to content

TribitsCTestDriverCore allow for CTEST_BUILD_TARGET override #94

@lefebvre

Description

@lefebvre

Ross,
Several packages I develop require "install" to satisfy verification testing.
I believe this should be as easy as exposing the second build directive to environment override.

warroom2:TriBITS jap$ git diff
diff --git a/tribits/ctest_driver/TribitsCTestDriverCore.cmake b/tribits/ctest_driver/TribitsCTestDriverCore.cmake
index 970315d..d3cfdbf 100644
--- a/tribits/ctest_driver/TribitsCTestDriverCore.cmake
+++ b/tribits/ctest_driver/TribitsCTestDriverCore.cmake
@@ -1731,7 +1731,7 @@ FUNCTION(TRIBITS_CTEST_DRIVER)
         SET(BUILD_OR_TEST_FAILED FALSE)

         # Build the ALL target, but append the results to the last build.xml
-        SET(CTEST_BUILD_TARGET)
+        SET_DEFAULT_AND_FROM_ENV(CTEST_BUILD_TARGET "")
         MESSAGE("\nBuild ALL target for '${TRIBITS_PACKAGE}' ...\n")
         CTEST_BUILD(
           BUILD "${CTEST_BINARY_DIRECTORY}"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions