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

Build main in a the serverMain directory.

    XMLWordPrintable

Details

    • Story
    • Status: Done
    • Resolution: Done
    • None
    • ts_main_telescope

    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

          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)
          

           

          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

            jgates John Gates
            jgates John Gates
            Te-Wei Tsai
            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.