[CMake] Cmake cannot find source file / Cmake can not determine linker language
Simply, in a subdirectory: ADD_LIBRARY (sift_h common.hxx) and altho the file common.hpp is there, he returns 'Cmake cannot find source file .../.../common.hxx for target sift_h tried extensions ... .hpp ...' if i change the CMakeLists in that subdirectory to ADD_LIBRARY (sift_h common.hpp) he doesn't complain at first, but when Ok is clicked 'Cmake can not determine linker language for target:sift_h' .. wth? the CMakeLists in ROOT is PROJECT (SIFT) ADD_SUBDIRECTORY (includes) ADD_EXECUTABLE (siftpp main.cpp) TARGET_LINK_LIBRARIES (siftpp sift_h) -- Dario Figueira ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Cmake cannot find source file / Cmake can not determine linker language
I am guessing here, but I _think_ cmake really wants a .cpp/cxx/c file instead of a header file. -- Mike Jackson Senior Research Engineer Innovative Management Technology Services On Feb 29, 2008, at 11:21 AM, Dario Figueira wrote: ADD_LIBRARY (sift_h common.hpp) ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake