CMake Error

Asked by Humberto Diaz on 2011-07-12

Hello. I've tried to run CMake on Windows 7 with version 2.2.1 of the code but I run into the following error:

Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:35 (install):
  install Library TARGETS given no DESTINATION!

Configuring incomplete, errors occurred!

Any ideas? I'm not familiar enough with CMake to correct mistakes in the make files.

Question information

Language:
English Edit question
Status:
Solved
For:
ARToolKitPlus Edit question
Assignee:
No assignee Edit question
Solved by:
Humberto Diaz
Solved:
2011-07-13
Last query:
2011-07-13
Last reply:
Humberto Diaz (humberto-diaz) said : #1

I think I've since found a solution to the problem. It's an issue with how CMake works between Windows and Linux, discussed here: http://old.nabble.com/QtRuby-install-targets-td22404372.html

I changed the offending line...

install(TARGETS ARToolKitPlus LIBRARY DESTINATION lib)

To the following...

install(TARGETS ARToolKitPlus LIBRARY DESTINATION lib
                      ARCHIVE DESTINATION lib
                      RUNTIME DESTINATION bin )

And now it works fine.

Dayangac (enesdayangac) said : #2

How does it work to generate visual studio 2008 or 2010 projects?