[CMake] Install target is not called

Pavel Shevaev pacha.shevaev at gmail.com
Tue Feb 17 01:44:01 EST 2009


Folks, what can be the reason for install target not to be called? I
have something like this in my CMakeLists.txt:

  add_executable(foo src1 src2 src3)
  target_link_libraries(foo ${libs})
  install(PROGRAMS ${foo_BINARY_DIR}/foo
           DESTINATION ${foo_SOURCE_DIR}/bin
          )

And for some reason "cd build && cmake .. && make && make install"
doesn't install anything into bin directory while build completes
successfully and foo binary exists in ${foo_BINARY_DIR}

This is what "make install" says:

Install the project...
-- Install configuration: ""

...and nothing actually happens.

-- 
Best regards, Pavel


More information about the CMake mailing list