mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-12 18:42:36 +01:00
Make toolchain compatible for both OSX and Linux
This commit is contained in:
@@ -18,8 +18,14 @@ INCLUDE(FindPkgConfig)
|
|||||||
PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
|
PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
|
||||||
INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
SET(TARGET_ENVIRONMENT /usr/local/mingw-w32-bin_i686-darwin/i686-w64-mingw32)
|
||||||
|
else()
|
||||||
|
SET(TARGET_ENVIRONMENT /usr/i686-w64-mingw32)
|
||||||
|
endif(APPLE)
|
||||||
|
|
||||||
# here is the target environment located
|
# here is the target environment located
|
||||||
SET(CMAKE_FIND_ROOT_PATH /usr/local/mingw-w32-bin_i686-darwin/i686-w64-mingw32)
|
SET(CMAKE_FIND_ROOT_PATH ${TARGET_ENVIRONMENT})
|
||||||
|
|
||||||
# adjust the default behaviour of the FIND_XXX() commands:
|
# adjust the default behaviour of the FIND_XXX() commands:
|
||||||
# search headers and libraries in the target environment, search
|
# search headers and libraries in the target environment, search
|
||||||
|
|||||||
Reference in New Issue
Block a user