Re: [CMake] get_prerequisites() - fails with No such file or directory

2016-01-06 Thread Bill Hoffman
On 1/6/2016 6:14 AM, roze...@volny.cz wrote: When get_prerequisites() is not called, the build works correctly. So, did I do anything wrong? get_prerequisites needs to be called at install time and not CMake time. Look at install(CODE "") -Bill -- Powered by www.kitware.com Please keep me

[CMake] How can I control / debug linking arguments?

2016-01-06 Thread Gabriel Archacki Hare
I am trying to set up a cross-compile using FindCUDA to the TegraK1 architecture, which limits me to CUDA 6.5. Specifically, I have a subdirectory TestCUDA that compiles (using separable compilation) to a library libTestCUDA.a, which is then linked with code that is compiled using c++11 (which

[CMake] get_prerequisites() - fails with No such file or directory

2016-01-06 Thread rozelak
Hallo.I try to use get_prerequisites() and it seems that it is called before the target is created. The CMake code snipped is as follows: set(SRC_FILES )# Make libadd_library( OUTPUT SHARED ${SRCS_FILES})target_link_libraries(OUTPUT ${PROJECT_LIBRARIES})target_lin