Skip to content

Commit

Permalink
feat: maybe fix win debug linking problem
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Apr 25, 2024
1 parent 5c50010 commit 0181b1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion maadeps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ endif()
if(CMAKE_CROSSCOMPILING)
list(PREPEND CMAKE_FIND_ROOT_PATH "${CMAKE_CURRENT_LIST_DIR}/vcpkg/installed/${MAADEPS_TRIPLET}")
else()
list(PREPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/vcpkg/installed/${MAADEPS_TRIPLET}")
if (WIN32)
list(PREPEND CMAKE_PREFIX_PATH "$<IF:$<Config:Debug>,${CMAKE_CURRENT_LIST_DIR}/vcpkg/installed/${MAADEPS_TRIPLET}/debug,>")
list(PREPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/vcpkg/installed/${MAADEPS_TRIPLET}")
else ()
list(PREPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/vcpkg/installed/${MAADEPS_TRIPLET}")
endif ()
endif()

function(maadeps_install dest)
Expand Down

0 comments on commit 0181b1c

Please sign in to comment.