From 53339cf4175415e2739d799bd6382d943c153bf6 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Sat, 1 Nov 2014 22:52:11 +0100 Subject: [PATCH] Fix linking on OSX --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 640d6e770..73b1fb7bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,10 +78,6 @@ if(USE_WIIUSE) include_directories("${PROJECT_SOURCE_DIR}/lib/wiiuse") endif() -# Build the angelscript library -add_subdirectory("${PROJECT_SOURCE_DIR}/lib/angelscript/projects/cmake") -include_directories("${PROJECT_SOURCE_DIR}/lib/angelscript/include") - # Set include paths include_directories(${STK_SOURCE_DIR}) @@ -101,6 +97,11 @@ elseif(MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") # Enable multi-processor compilation (faster) endif() + +# Build the angelscript library +add_subdirectory("${PROJECT_SOURCE_DIR}/lib/angelscript/projects/cmake") +include_directories("${PROJECT_SOURCE_DIR}/lib/angelscript/include") + # OpenAL if(APPLE) # In theory it would be cleaner to let CMake detect the right dependencies. In practice, this means that if a OSX user has