i fire cmake -c mysettings.cmake.
the content of myfile.cmake is
set(cmake_install_prefix "c:/install/mylib" string)
everything generated seems -c mysettings.cmake variable not set. still installed in default directory.
cmake prints message "loading initial cache file ../../script/cmake/mysettings.cmake" without error.
the full call:
cmake -c ../../script/cmake/mysettings.cmake -g "visual studio 9 2008" ../../source/mylib
is there wrong syntax?
from cmake manual:
the given file should cmake script containing set commands use cache option, not cache-format file.
so myfile.cmake
needs this:
set(cmake_install_prefix "c:/install/mylib" cache path "")
Comments
Post a Comment