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

-DBUILD_EXAMPLES:BOOL=ON causes cmake error. #166

Open
tokjun opened this issue Jan 10, 2018 · 2 comments
Open

-DBUILD_EXAMPLES:BOOL=ON causes cmake error. #166

tokjun opened this issue Jan 10, 2018 · 2 comments

Comments

@tokjun
Copy link
Contributor

tokjun commented Jan 10, 2018

When cmake is called with -DBUILD_EXAMPLES:BOOL=ON, it gives the following error:

CMake Error at Examples/Tracker/CMakeLists.txt:8 (find_package):
  By not providing "FindOpenIGTLink.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "OpenIGTLink", but CMake did not find one.

  Could not find a package configuration file provided by "OpenIGTLink" with
  any of the following names:

    OpenIGTLinkConfig.cmake
    openigtlink-config.cmake

  Add the installation prefix of "OpenIGTLink" to CMAKE_PREFIX_PATH or set
  "OpenIGTLink_DIR" to a directory containing one of the above files.  If
  "OpenIGTLink" provides a separate development package or SDK, be sure it
  has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/junichi/igtdev/igtl/OpenIGTLink-build/CMakeFiles/CMakeOutput.log".
See also "/home/junichi/igtdev/igtl/OpenIGTLink-build/CMakeFiles/CMakeError.log".

@adamrankin
Copy link
Contributor

Executables within the project should not need to call find_package on OpenIGTLink as the targets are already available. Just link to OpenIGTLink

@EL-SHREIF
Copy link

But what if you need itg from outside this project?

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

3 participants