gravatar
ladanyi@tmit.bme.hu
ladanyi@tmit.bme.hu
Add GLPK_ROOT_DIR variable to FindGLPK (#277)
0 1 0
default
1 file changed with 9 insertions and 4 deletions:
↑ Collapse diff ↑
Show white space 2 line context
1
SET(GLPK_ROOT_DIR "" CACHE PATH "GLPK root directory")
2

	
1 3
SET(GLPK_REGKEY "[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Glpk;InstallPath]")
... ...
@@ -5,7 +7,10 @@
5 7
  glpk.h
6
  PATHS ${GLPK_REGKEY}/include)
7

	
8
  PATHS ${GLPK_REGKEY}/include
9
  HINTS ${GLPK_ROOT_DIR}/include
10
)
8 11
FIND_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
)
11 16

	
0 comments (0 inline)