[CMake] problem setting CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX

Hendrik Sattler post at hendrik-sattler.de
Mon Jan 28 12:51:43 EST 2008


Quoting Yogesh Marwaha <yogeshm.007 at gmail.com>:
> I am having problem setting values for CMAKE_BUILD_TYPE and   
> CMAKE_INSTALL_PREFIX
>
> Here is CMakeLists.txt in project root directory
> ==================================
> project (eSpy)
> cmake_minimum_required (VERSION 2.4.0)
> set (CMAKE_BUILD_TYPE Release)
> set (CMAKE_INSTALL_PREFIX "/usr")

You don't like the guys that build your piece of software? Why do you  
want to enforce those settings? What about people that want to install  
it to /usr/local or to their home directory?
Please, don't do such stuff.

HS




More information about the CMake mailing list