Skip to content

Commit

Permalink
fix: add some msvc specifi fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
codedwrench committed Jan 12, 2024
1 parent edb778c commit b6ef60a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ if (WIN32)
# We have no GUI anyway!
add_definitions(-DNOGDI)

set(BOOST_ROOT "c:/boost" CACHE STRING "Where boost is located")
set(PCAP_ROOT_DIR "c:/npcapsdk" CACHE STRING "Where the npcap sdk is located")
set(PDCURSES_ROOT_DIR "c:/pdcurses/" CACHE STRING "Where the pdcurses directory is located")

Expand Down
5 changes: 4 additions & 1 deletion cmake/wrapfindboost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@

# wrapfindboost.cmake - Finds boost under our terms.
# Usage: Set Boost_ARCHITECTURE if the default arch is not OK, set BOOST_ROOT as well.

if (BUILD_STATIC)
set(Boost_NO_SYSTEM_PATHS ON)
set(Boost_USE_STATIC_LIBS ON)
endif ()

if (MSVC)
set(Boost_USE_STATIC_RUNTIME ON)
endif ()

# Needed because otherwise the libraries cannot be found.
if (BUILD_X32)
set(Boost_ARCHITECTURE "-x32")
Expand Down

0 comments on commit b6ef60a

Please sign in to comment.