Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-35023

Build main in a the serverMain directory.

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ts_main_telescope
    • Labels:

      Description

      The update to version v3 of Check2 required moving main out of the library as having it there broke all the unit test with linker errors. This will also simplify building other executables with the same library.

        Attachments

          Activity

          Hide
          jgates John Gates added a comment -

          This section of the top level Makefile caused issues with Catch2 v3 and needs to be replaced.

          # Having main in the library broke the Catch2 unit tests.
          m2cell: run_tests 
              $(BIN_DIR)/m2cell
          # The main m2cell program.
          $(BIN_DIR)/m2cell: $(LIB_DIR)/libm2cellcpp.a
             mkdir -p bin
             $(CPP) $(OBJS) -o $@ $(LDFLAGS) $(CPP_LIBS)
          

           

          Show
          jgates John Gates added a comment - This section of the top level Makefile caused issues with Catch2 v3 and needs to be replaced. # Having main in the library broke the Catch2 unit tests. m2cell: run_tests $(BIN_DIR)/m2cell # The main m2cell program. $(BIN_DIR)/m2cell: $(LIB_DIR)/libm2cellcpp.a   mkdir -p bin   $(CPP) $(OBJS) -o $@ $(LDFLAGS) $(CPP_LIBS)  

            People

            Assignee:
            jgates John Gates
            Reporter:
            jgates John Gates
            Reviewers:
            Te-Wei Tsai
            Watchers:
            John Gates, Te-Wei Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.