<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div>Hello,</div><div><br></div><div>I would like to know if it's possible to pass a configuration file to CMake.</div><div>I have to pass a lot of information to CMake and the resulting command line is very long to type.</div><div>Would it be possible to create a file containing all needed definitions and pass it to CMake?</div><div><br></div><div>For exemple, instead of typing</div><div><br></div><div>cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX=/home/me/there -D CMAKE_CXX_COMPILER=/usr/local/gcc/4.9.3/g++</div><div><br></div><div>would it be possible to create a file containing</div><div><br></div><div>CMAKE_BUILD_TYPE=Debug </div><div>CMAKE_INSTALL_PREFIX=/home/me/there </div><div>CMAKE_CXX_COMPILER=/usr/local/gcc/4.9.3/g++</div><div><br></div><div>and pass it to CMake?</div><div><br></div><div>Cédric</div></div></body></html>