1
0
mirror of https://github.com/blupi-games/planetblupi-dev synced 2024-12-30 13:55:36 +01:00

Pass the library path only if APPLE

This commit is contained in:
Mathieu Schroeter 2017-07-31 16:32:06 +02:00
parent 26b516adf6
commit 23eec44111
2 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,9 @@ include (${CMAKE_ROOT}/Modules/ExternalProject.cmake)
include_directories (${CMAKE_BINARY_DIR}/include)
link_directories (${CMAKE_BINARY_DIR}/lib)
set (CMAKE_LDFLAGS "-framework AudioToolBox -framework CoreAudio -framework CoreFoundation -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -framework Carbon")
if (APPLE)
set (CMAKE_LDFLAGS "-L${CMAKE_BINARY_DIR}/lib -framework AudioToolBox -framework CoreAudio -framework CoreFoundation -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -framework Carbon")
endif ()
configure_file (cmd.sh.in cmd.sh @ONLY)
set (CMD ${CMAKE_BINARY_DIR}/cmd.sh)

View File

@ -4,7 +4,7 @@ export PKG_CONFIG_PATH="@CMAKE_BINARY_DIR@/lib/pkgconfig"
export INCLUDE_PATH="@CMAKE_BINARY_DIR@/include"
export LIBRARY_PATH="@CMAKE_BINARY_DIR@/lib"
export BINARY_PATH="@CMAKE_BINARY_DIR@/bin"
export LDFLAGS="@CMAKE_LDFLAGS@ -L$LIBRARY_PATH"
export LDFLAGS="@CMAKE_LDFLAGS@"
cmd=$1
shift