Skip to content

Commit 29f5eed

Browse files
committed
changed glpk dll path
1 parent 0e2aae7 commit 29f5eed

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

modules/singGraphBuild/CMakeLists.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,21 @@ install(TARGETS singGraphBuilder
8686

8787
# PRE_LINK event to copy glpk dll
8888
if(WIN32)
89+
message("glpk_dll: ${PROJECT_SOURCE_DIR}/external/glpk/src/glpk/w64/glpk_4_65.dll")
90+
if(EXISTS "${PROJECT_SOURCE_DIR}/external/glpk/src/glpk/w64/glpk_4_65.dll")
91+
message(WARNING "GLPK WAS HERE")
92+
else ()
93+
message(WARNING "GLPK WAS NOT HERE")
94+
endif ()
95+
message("destdir: ${<TARGET_FILE_DIR:singGraphBuilder>}")
96+
if(EXISTS $<TARGET_FILE_DIR:singGraphBuilder>)
97+
message(WARNING "DESTDIR WAS HERE")
98+
else ()
99+
message(WARNING "DESTDIR WAS NOT HERE")
100+
endif ()
89101
add_custom_command(TARGET singGraphBuilder PRE_LINK
90102
COMMAND ${CMAKE_COMMAND} -E copy_if_different
91-
"../../external/glpk/src/glpk/w64/glpk_4_65.dll"
103+
"${PROJECT_SOURCE_DIR}/external/glpk/src/glpk/w64/glpk_4_65.dll"
92104
$<TARGET_FILE_DIR:singGraphBuilder>
93105
)
94106
endif ()

0 commit comments

Comments
 (0)