Skip to content

Commit

Permalink
Fix CMake call
Browse files Browse the repository at this point in the history
  • Loading branch information
jetsonhacks committed May 2, 2019
1 parent e3cc8f6 commit dd8f55d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions installLibrealsense.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ echo "${green}Configuring Make system${reset}"
# Use the CMake version that we built, must be > 3.8
# Build with CUDA (default), the CUDA flag is USE_CUDA, ie -DUSE_CUDA=true
export CUDACXX=$NVCC_PATH

if [ "$USE_CUDA" = true ] ; then
$CMAKE_PATH=${HOME}/CMake/bin/cmake
${HOME}/CMake/bin/cmake ../ -DBUILD_EXAMPLES=true -DBUILD_WITH_CUDA="$USE_CUDA" -DCMAKE_BUILD_TYPE=release
else
$CMAKE_PATH=/usr/bin/cmake
/usr/bin/cmake ../ -DBUILD_EXAMPLES=true -DBUILD_WITH_CUDA="$USE_CUDA" -DCMAKE_BUILD_TYPE=release
fi

$CMAKE_PATH ../ -DBUILD_EXAMPLES=true -DBUILD_WITH_CUDA="$USE_CUDA" -DCMAKE_BUILD_TYPE=release
# The library will be installed in /usr/local/lib, header files in /usr/local/include
# The demos, tutorials and tests will located in /usr/local/bin.
echo "${green}Building librealsense, headers, tools and demos${reset}"
Expand Down

0 comments on commit dd8f55d

Please sign in to comment.