Bugfix: Overwriting PATH breaks gcc toolchain on some systems
This has been the reason for the IRRLICHT_WITH_XF86VM and IRRLICHT_WITHOUT_XF86VM failures on some Linux machines. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11197 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
85ba896d04
commit
0b329b1542
@ -41,10 +41,12 @@ endif()
|
|||||||
# Set include paths
|
# Set include paths
|
||||||
include_directories(${STK_SOURCE_DIR})
|
include_directories(${STK_SOURCE_DIR})
|
||||||
|
|
||||||
# With these variables set libraries in "dependencies" are found
|
# These variables enable MSVC to find libraries located in "dependencies"
|
||||||
set(ENV{PATH} ${PROJECT_SOURCE_DIR}/dependencies/include)
|
if(MSVC)
|
||||||
set(ENV{LIB} ${PROJECT_SOURCE_DIR}/dependencies/lib)
|
set(ENV{PATH} ${PROJECT_SOURCE_DIR}/dependencies/include)
|
||||||
set(ENV{OPENALDIR} ${PROJECT_SOURCE_DIR}/dependencies)
|
set(ENV{LIB} ${PROJECT_SOURCE_DIR}/dependencies/lib)
|
||||||
|
set(ENV{OPENALDIR} ${PROJECT_SOURCE_DIR}/dependencies)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Irrlicht
|
# Irrlicht
|
||||||
find_package(Irrlicht 1.8 REQUIRED)
|
find_package(Irrlicht 1.8 REQUIRED)
|
||||||
|
Loading…
Reference in New Issue
Block a user