We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60d046f + b2d85bb commit b98b1b0Copy full SHA for b98b1b0
CMakeLists.txt
@@ -5,6 +5,8 @@ project(magent)
5
IF (APPLE)
6
set(CMAKE_CXX_COMPILER "/usr/local/opt/llvm/bin/clang++")
7
link_directories("/usr/local/opt/llvm/lib")
8
+ include_directories( "/usr/local/include" )
9
+ link_directories("/usr/local/lib/")
10
ENDIF()
11
12
file(GLOB autopilot_sources src/*.cc src/gridworld/*.cc src/discrete_snake/*.cc src/utility/*.cc)
build.sh
@@ -8,4 +8,11 @@ fi
mkdir -p build
cd build
cmake ..
-make -j $(nproc)
+#make -j $(nproc)
+if [[ "$OSTYPE" == "linux-gnu" ]]; then
13
+ # Linux
14
+ make -j `nproc`
15
+elif [[ "$OSTYPE" == "darwin"* ]]; then
16
+ # Mac OSX
17
+ make -j `sysctl -n hw.ncpu`
18
+fi
0 commit comments