[CMake] problem setting CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX
Yogesh Marwaha
yogeshm.007 at gmail.com
Tue Jan 29 10:42:51 EST 2008
Ok, got it.
Here is new CMakeLists.txt
========================
project (eSpy)
cmake_minimum_required (VERSION 2.4.0)
if(NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE Release)
endif(NOT CMAKE_BUILD_TYPE)
if(NOT CMAKE_INSTALL_PREFIX)
set (CMAKE_INSTALL_PREFIX "/usr/local")
endif(NOT CMAKE_INSTALL_PREFIX)
find_package (Qt4 REQUIRED)
add_subdirectory (eSpy)
add_subdirectory (eSpyDLin)
======================
Now CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX are only set if not
previously set/defined.
Now no one should have any complaint. Right?
Thanks to all here
---------
Yogesh M
More information about the CMake
mailing list