Skip to content

Commit

Permalink
fix(windows): link missing libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Dec 3, 2023
1 parent b1df2c6 commit e149eb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,16 @@ target_link_libraries(${PROJECT_NAME} PUBLIC cr::flagpp tl::expected boost_calla

if (UNIX AND NOT MINGW)
file(GLOB src "src/*.linux*.cpp")
target_sources(${PROJECT_NAME} PRIVATE ${src})
endif()

if (WIN32)
file(GLOB src "src/*.win*.cpp")
target_sources(${PROJECT_NAME} PRIVATE ${src})
target_compile_definitions(${PROJECT_NAME} PRIVATE NOMINMAX)
target_link_libraries(${PROJECT_NAME} PUBLIC imagehlp dbghelp)
endif()

target_sources(${PROJECT_NAME} PRIVATE ${src})

# --------------------------------------------------------------------------------------------------------
# Setup cross-platform entrypoint
# --------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit e149eb4

Please sign in to comment.