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
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to