Skip to content

Commit

Permalink
CMake: Don't use system libraries when compiling with mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
neobrain committed Sep 6, 2024
1 parent 3e39eb3 commit ccfa61c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions toolchain_mingw.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ set(CMAKE_CXX_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
set(CMAKE_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR ${MINGW_TRIPLE})

set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)

0 comments on commit ccfa61c

Please sign in to comment.