COIN-OR::LEMON - Graph Library

Changeset 637:4faa0c763906 in lemon-main


Ignore:
Timestamp:
04/27/09 19:05:04 (16 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Phase:
public
Message:

Add GLPK_ROOT_DIR variable to FindGLPK (#277)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmake/FindGLPK.cmake

    r627 r637  
     1SET(GLPK_ROOT_DIR "" CACHE PATH "GLPK root directory")
     2
    13SET(GLPK_REGKEY "[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Glpk;InstallPath]")
    24GET_FILENAME_COMPONENT(GLPK_ROOT_PATH ${GLPK_REGKEY} ABSOLUTE)
     
    46FIND_PATH(GLPK_INCLUDE_DIR
    57  glpk.h
    6   PATHS ${GLPK_REGKEY}/include)
    7 
     8  PATHS ${GLPK_REGKEY}/include
     9  HINTS ${GLPK_ROOT_DIR}/include
     10)
    811FIND_LIBRARY(GLPK_LIBRARY
    9   NAMES glpk
    10   PATHS ${GLPK_REGKEY}/lib)
     12  glpk
     13  PATHS ${GLPK_REGKEY}/lib
     14  HINTS ${GLPK_ROOT_DIR}/lib
     15)
    1116
    1217INCLUDE(FindPackageHandleStandardArgs)
Note: See TracChangeset for help on using the changeset viewer.