Changeset 226 in pacpusframework for trunk


Ignore:
Timestamp:
Nov 25, 2013, 10:07:19 AM (11 years ago)
Author:
Marek Kurdej
Message:

CMake: clarified use of WINSDK_LIB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/PacpusDependencies.cmake

    r223 r226  
    1919set(QT_CMAKE_DIR "$ENV{QT_BIN}/../lib/cmake")
    2020get_filename_component(QT_CMAKE_DIR "${QT_CMAKE_DIR}" ABSOLUTE)
    21 #message(STATUS "\${QT_CMAKE_DIR} = '${QT_CMAKE_DIR}'")
     21if(DEBUG)
     22        message(STATUS "\${QT_CMAKE_DIR} = '${QT_CMAKE_DIR}'")
     23endif()
    2224list(APPEND CMAKE_PREFIX_PATH
    2325    ${QT_CMAKE_DIR}
    2426)
    2527if(WIN32)
    26     message(STATUS "Environment variable 'WINSDK_LIB' should be set to something like 'C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x86'")
    27     #message(STATUS "\$ENV{WINSDK_LIB} = '$ENV{WINSDK_LIB}'")
     28        set(WINSDK_LIB "$ENV{WINSDK_LIB}" CACHE PATH "Directory of Windows Development Kit, should contain glu32.lib.")
     29        if("${WINSDK_LIB}" STREQUAL "")
     30                message(STATUS "Environment variable 'WINSDK_LIB' should be set to something like 'C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x86'")
     31        endif()
     32        if(DEBUG)
     33                message(STATUS "\$ENV{WINSDK_LIB} = '$ENV{WINSDK_LIB}'")
     34                message(STATUS "\${WINSDK_LIB} = '${WINSDK_LIB}'")
     35        endif()
    2836    list(APPEND CMAKE_PREFIX_PATH
    29         $ENV{WINSDK_LIB}
     37        ${WINSDK_LIB}
    3038    )
     39endif()
     40if(DEBUG)
     41        message(STATUS "\${CMAKE_PREFIX_PATH} = '${CMAKE_PREFIX_PATH}'")
    3142endif()
    3243
Note: See TracChangeset for help on using the changeset viewer.