Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to include SDHCalContent and AprilContent #26

Closed
wants to merge 3 commits into from

Conversation

andresailer
Copy link
Contributor

BEGINRELEASENOTES

  • CMake: Add possibility to include SDHCalContent and AprilContent

ENDRELEASENOTES

INCLUDE_DIRECTORIES( SYSTEM ${SDHCALContent_INCLUDE_DIRS} )
LINK_LIBRARIES( ${SDHCALContent_LIBRARIES} )
ADD_DEFINITIONS ( ${SDHCALContent_DEFINITIONS} )
ADD_DEFINITIONS( "-DSDHCALCONTENT" )
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
ADD_DEFINITIONS( "-DSDHCALCONTENT" )
ADD_DEFINITIONS( "SDHCALCONTENT" )

Cmake will add the -D where necessary

INCLUDE_DIRECTORIES( SYSTEM ${APRILContent_INCLUDE_DIRS} )
LINK_LIBRARIES( ${APRILContent_LIBRARIES} )
ADD_DEFINITIONS ( ${APRILContent_DEFINITIONS} )
ADD_DEFINITIONS( "-DAPRILCONTENT" )
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
ADD_DEFINITIONS( "-DAPRILCONTENT" )
ADD_DEFINITIONS( "APRILCONTENT" )

@@ -0,0 +1,18 @@
IF(NOT DEFINED mlpack_DIR)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

mlpack should come with a cmake config file, so this findmlpack should not be needed
https://github.com/mlpack/mlpack/blob/master/CMake/mlpack-config.cmake.in

@@ -0,0 +1,18 @@
IF(NOT DEFINED mlpack_DIR)
MESSAGE(STATUS "Warning: it is mandorary to define mlpack_DIR.")
Copy link
Contributor Author

@andresailer andresailer Mar 5, 2024

Choose a reason for hiding this comment

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

Suggested change
MESSAGE(STATUS "Warning: it is mandorary to define mlpack_DIR.")
MESSAGE(FATAL_ERROR "It is mandatory to define mlpack_DIR.")

@andresailer
Copy link
Contributor Author

Superseded by #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants