Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_main_telescope
-
Labels:
-
Story Points:1
-
Epic Link:
-
Team:Telescope and Site
-
Urgent?:No
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.
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)