Skip to content

Conversation

@sy-c
Copy link
Collaborator

@sy-c sy-c commented Dec 5, 2018

  • cmake rewritten
  • targets exported
  • swig wrapper code generated by cmake
  • added interface to Go

@sy-c sy-c requested a review from awegrzyn December 5, 2018 14:49
@sy-c
Copy link
Collaborator Author

sy-c commented Dec 5, 2018

  • tested with flpproto packages ok
  • tested on mac ok

Copy link
Collaborator

@awegrzyn awegrzyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, it looks good, as it's a large PR I was not able to test everything, here are my few comments:

  • I'd move binaries into build/bin directory: set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin")
  • make test claims "No tests were found!!!"
  • Compile definitions are not set, eg: _WITH_MYSQL when MySQL found

ENDIF ()
endforeach ()
# global compilation options
set(CMAKE_CXX_STANDARD 14)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd not enforce C++14, if a dependency uses C++17-enabled features in its interfaces the compilation will fail.
As aliBuild also sets C++ version I think simple check, as in QC, would be good: https://github.com/AliceO2Group/QualityControl/blob/48265588da0696fabf01b4a27aef50bfbf67de9d/CMakeLists.txt#L59

CMakeLists.txt Outdated
src/infoLoggerMessageDecode.c
src/InfoLoggerMessageHelper.cxx
src/InfoLoggerMessageList.cxx
${INFOLOGGERSERVER_SRC_EXTRA}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be replaced by generator expression:

$<$<BOOL:${MYSQL_FOUND}>:src/InfoLoggerDispatchSQL.cxx>

@sy-c
Copy link
Collaborator Author

sy-c commented Dec 10, 2018

Hello Adam,
thanks for the pertinent feedback, I have pushed requested changes.
only c++ standard was left to 14, as infologger does not need more.

@awegrzyn awegrzyn mentioned this pull request Dec 11, 2018
@sy-c sy-c merged commit 0dd5577 into AliceO2Group:master Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants