mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-06 08:20:15 +02:00
Small mingwcc.cmake cleanup
This commit is contained in:
parent
963c030b91
commit
e110a45ebc
1 changed files with 3 additions and 8 deletions
|
@ -1,6 +1,5 @@
|
||||||
set(TOOLCHAIN_PREFIX "x86_64-w64-mingw32")
|
set(TOOLCHAIN_PREFIX "x86_64-w64-mingw32")
|
||||||
|
|
||||||
# the name of the target operating system
|
|
||||||
set(CMAKE_SYSTEM_NAME Windows)
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
|
|
||||||
set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PREFIX}-g++")
|
set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PREFIX}-g++")
|
||||||
|
@ -12,8 +11,7 @@ set(CMAKE_AR "${TOOLCHAIN_PREFIX}-ar")
|
||||||
set(ASSEMBLER "${TOOLCHAIN_PREFIX}-as")
|
set(ASSEMBLER "${TOOLCHAIN_PREFIX}-as")
|
||||||
|
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32)
|
set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
|
||||||
#set(CMAKE_SYSROOT "/usr/x86_64-w64-mingw32")
|
|
||||||
|
|
||||||
# adjust the default behavior of the find commands:
|
# adjust the default behavior of the find commands:
|
||||||
# search headers and libraries in the target environment
|
# search headers and libraries in the target environment
|
||||||
|
@ -23,8 +21,5 @@ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
# search programs in the host environment
|
# search programs in the host environment
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
|
|
||||||
set(SDL2_PATH /usr/x86_64-w64-mingw32)
|
# Add the path to your toolchain version of SDL2
|
||||||
|
set(SDL2_PATH /usr/${TOOLCHAIN_PREFIX})
|
||||||
#include_directories(BEFORE SYSTEM "/usr/x86_64-w64-mingw32/include/SDL2")
|
|
||||||
#list(APPEND CMAKE_IGNORE_PATH /usr/include/SDL2)
|
|
||||||
#message("CMAKE_IGNORE_PATH: ${CMAKE_IGNORE_PATH}")
|
|
Loading…
Add table
Add a link
Reference in a new issue