Skip to content

Commit 336d207

Browse files
committed
changed glpk dll path
1 parent 0e2aae7 commit 336d207

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

modules/singGraphBuild/CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,19 @@ 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+
add_custom_command(TARGET singGraphBuilder PRE_LINK
96+
COMMAND ${CMAKE_COMMAND} -E echo
97+
"aaa $<TARGET_FILE_DIR:singGraphBuilder>"
98+
)
8999
add_custom_command(TARGET singGraphBuilder PRE_LINK
90100
COMMAND ${CMAKE_COMMAND} -E copy_if_different
91-
"../../external/glpk/src/glpk/w64/glpk_4_65.dll"
101+
"${PROJECT_SOURCE_DIR}/external/glpk/src/glpk/w64/glpk_4_65.dll"
92102
$<TARGET_FILE_DIR:singGraphBuilder>
93103
)
94104
endif ()

0 commit comments

Comments
 (0)