something needed change.
first, for Mac OS user. on CMakeLists.txt need a if
@@ -298,7 +299,7 @@ if (HepMC3_FOUND)
TARGET_LINK_LIBRARIES (Crmc ${HEPMC3_LIBRARIES})
if (Rivet_FOUND)
STRING (STRIP "${RIVET_LIB_DIR}" RIVET_LIBRARY_DIR)
- TARGET_LINK_LIBRARIES (Crmc ${RIVET_LIBRARY_DIR}/libRivet.so)
+ TARGET_LINK_LIBRARIES (Crmc ${RIVET_LIBRARY_DIR}/libRivet.dylib)
TARGET_COMPILE_OPTIONS (Crmc PUBLIC ${RIVET_CXXFLAGS})
endif(Rivet_FOUND)
endif(HepMC3_FOUND)
May be using :
if(APPLE)
TARGET_LINK_LIBRARIES (Crmc ${RIVET_LIBRARY_DIR}/libRivet.dylib)
else(APPLE)
TARGET_LINK_LIBRARIES (Crmc ${RIVET_LIBRARY_DIR}/libRivet.so)
endif(APPLE)
second,
----------------------- ExampleAnalyser/src/histogram.hh -----------------------
index f7e74fc..511f0a0 100644
@@ -424,7 +424,7 @@ namespace nd_histogram {
*/
size_t _size() const {
size_t ret = 1;
- for (auto a : axes) ret *= a.get().size();
+ for (auto a : axes()) ret *= a.get().size();
return ret;
}
/**
third, at CMakeLists.txt
493
494 # linking of modules
495 TARGET_LINK_LIBRARIES (crmc Crmc)
496 IF (CRMC_STATIC)
497 TARGET_LINK_LIBRARIES (crmc ${STATIC_LIBS} CrmcBasic)
498 ENDIF(CRMC_STATIC)
499 TARGET_LINK_LIBRARIES (crmc ${CMAKE_DL_LIBS})
500
501 INSTALL (TARGETS crmc RUNTIME DESTINATION bin)
502 ENDIF (CRMC_PROG)
the only difference of name crmc and Crmc is a 'c/C'. which may cause bugs on some filesystem when building