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


Ignore:
Timestamp:
May 19, 2013, 12:32:48 PM (11 years ago)
Author:
DHERBOMEZ Gérald
Message:

Improvement of the build system to avoid some workarounds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/PacpusConfiguration.cmake

    r64 r91  
    1111# Build-specific configuration
    1212# ========================================
     13
     14# TODO : check how cache variables work? Why the commented line doesn't work?
     15
    1316if(IS_BUILDING_PACPUS)
    14     set(PACPUS_INSTALL_DIR    ${CMAKE_INSTALL_PREFIX}   CACHE FILEPATH "Installation directory for the library")
     17        if(PACPUS_INSTALL_WITH_VERSION_NUMBER)
     18                pacpus_purge_backslash(PACPUS_INSTALL_DIR)
     19                set(PACPUS_INSTALL_DIR ${PACPUS_INSTALL_DIR}/${PACPUS_VERSION})
     20#       set(PACPUS_INSTALL_DIR    ${CMAKE_INSTALL_PREFIX}/${PACPUS_VERSION}   CACHE PATH "Installation directory for the library")
     21        endif()
    1522    set(PACPUS_INSTALL_3RD    FALSE                     CACHE BOOL      "Installation of the 3rd party")
    1623endif()
     24
    1725
    1826# ========================================
     
    2028# ========================================
    2129set(PACPUS_USE_LOG      TRUE  CACHE BOOL "Logging using log4cxx, the library is required")
    22 set(PACPUS_INSTALL_3RD  FALSE CACHE BOOL "Installation of the 3rd party")
     30if(win32)
     31        set(PACPUS_INSTALL_3RD  TRUE CACHE BOOL "Installation of the 3rd party")
     32else()
     33        set(PACPUS_INSTALL_3RD  FALSE CACHE BOOL "Installation of the 3rd party")
     34endif()
    2335set(PACPUS_BUILD_DOC    FALSE CACHE BOOL "Whether build the documentation - requires Doxygen")
    2436set(PACPUS_USE_SOLUTION_FOLDERS  FALSE CACHE BOOL "Use solution folders to classify projects, works in MS Visual Studio")
Note: See TracChangeset for help on using the changeset viewer.