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

Unable to bundle DeepState through CMake add_subdirectory #373

Open
laurynas-biveinis opened this issue Mar 24, 2021 · 0 comments
Open

Unable to bundle DeepState through CMake add_subdirectory #373

laurynas-biveinis opened this issue Mar 24, 2021 · 0 comments

Comments

@laurynas-biveinis
Copy link

If I try to bundle DeepState as a git submodule in a project and build it through add_subdirectory(3rd_party/deepstate) in the main CMakeLists.txt, the configure step fails with

...
CMake Deprecation Warning at 3rd_party/deepstate/CMakeLists.txt:16 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Error: File /Users/laurynas/unodb/deepstate-cmake-add-subdirectory/bin/setup.py.in does not exist.
CMake Error at 3rd_party/deepstate/CMakeLists.txt:285 (configure_file):
  configure_file Problem configuring file

This seems to be caused by

set(SETUP_PY_IN "${CMAKE_SOURCE_DIR}/bin/setup.py.in")

using CMAKE_SOURCE_DIR instead of CMAKE_CURRENT_SOURCE_DIR perhaps?

laurynas-biveinis added a commit to laurynas-biveinis/unodb that referenced this issue Mar 24, 2021
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

No branches or pull requests

1 participant