Changeset 322 in pacpusframework


Ignore:
Timestamp:
Oct 28, 2014, 12:36:37 PM (10 years ago)
Author:
Marek Kurdej
Message:

Clean finding WINSDK_LIB.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r301 r322  
    1313if(POLICY CMP0020)
    1414    cmake_policy(SET CMP0020 NEW) # for QT5.1 on windows / not work on linux
     15endif()
     16if(POLICY CMP0026)
     17    # allow using LOCATION_DEBUG in cmake/PacpusUtilities.cmake
     18    cmake_policy(SET CMP0026 OLD)
    1519endif()
    1620
  • trunk/cmake/PacpusDependencies.cmake

    r301 r322  
    1818set(QT_CMAKE_DIR "$ENV{QT_BIN}/../lib/cmake")
    1919get_filename_component(QT_CMAKE_DIR "${QT_CMAKE_DIR}" ABSOLUTE)
    20 if(DEBUG)
    21     message(STATUS "\${QT_CMAKE_DIR} = '${QT_CMAKE_DIR}'")
    22 endif()
     20message(STATUS "\${QT_CMAKE_DIR} = '${QT_CMAKE_DIR}'")
    2321list(APPEND CMAKE_PREFIX_PATH
    2422    ${QT_CMAKE_DIR}
     
    2624if(WIN32)
    2725    set(WINSDK_LIB "$ENV{WINSDK_LIB}" CACHE PATH "Directory of Windows Development Kit, should contain glu32.lib.")
     26    find_library(GLU32_LIB_PATH glu32 "${WINSDK_LIB}" "$ENV{WINSDK_LIB}")
     27    get_filename_component(WINSDK_LIB "${GLU32_LIB_PATH}" DIRECTORY)
    2828    if("${WINSDK_LIB}" STREQUAL "")
    29         message(STATUS "Environment variable 'WINSDK_LIB' should be set to something like 'C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x86'")
    30     endif()
    31     if(DEBUG)
     29        message(STATUS "Environment variable 'WINSDK_LIB' should be set to the path containing glu32 library, e.g. 'C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x86'")
     30    else()
    3231        message(STATUS "\$ENV{WINSDK_LIB} = '$ENV{WINSDK_LIB}'")
    3332        message(STATUS "\${WINSDK_LIB} = '${WINSDK_LIB}'")
Note: See TracChangeset for help on using the changeset viewer.