Skip to content

Commit

Permalink
Fixed cross compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
punesemu committed Jul 15, 2024
1 parent d695376 commit 8a6b82d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/TC-i686-w64-mingw32.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set(TOOLCHAIN_PREFIX i686-w64-mingw32)
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
set(PKG_CONFIG_EXECUTABLE ${TOOLCHAIN_PREFIX}-pkg-config)

# where is the target environment located
set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
Expand Down
1 change: 1 addition & 0 deletions cmake/TC-x86_64-w64-mingw32.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
set(PKG_CONFIG_EXECUTABLE ${TOOLCHAIN_PREFIX}-pkg-config)

# where is the target environment located
set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
Expand Down

0 comments on commit 8a6b82d

Please sign in to comment.