Changeset 51 in pacpusframework for trunk/cmake/PacpusConfiguration.cmake


Ignore:
Timestamp:
01/09/13 09:33:34 (11 years ago)
Author:
Marek Kurdej
Message:

CMake: added solution folders.
Dependencies: changed Boost 1.52 to 1.49.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/PacpusConfiguration.cmake

    r50 r51  
    2222set(PACPUS_INSTALL_3RD  FALSE CACHE BOOL "Installation of the 3rd party")
    2323set(PACPUS_BUILD_DOC    FALSE CACHE BOOL "Whether build the documentation - requires Doxygen")
     24set(PACPUS_USE_SOLUTION_FOLDERS  FALSE CACHE BOOL "Use solution folders to classify projects, works in MS Visual Studio")
     25
     26if(PACPUS_USE_SOLUTION_FOLDERS)
     27    if(CMAKE_VERSION VERSION_GREATER "2.8.0")
     28        set_property(GLOBAL PROPERTY USE_FOLDERS ON)
     29    else()
     30        message(AUTHOR_WARNING "Folders are only supported with CMake 2.8.0 and newer, and MSVC 2005 and newer except for 2005/2008/2010 Express Edition")
     31    endif()
     32endif(PACPUS_USE_SOLUTION_FOLDERS)
Note: See TracChangeset for help on using the changeset viewer.