Skip to content

Commit 380412a

Browse files
authored
Update installLibrealsense.patch (#99)
* Update installLibrealsense.patch * Update installLibrealsense.patch
1 parent 104f6d8 commit 380412a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/setup_scripts/patch/installLibrealsense.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Use the CMake version that we built, must be > 3.8
1313
# Build with CUDA (default), the CUDA flag is USE_CUDA, ie -DUSE_CUDA=true
1414
-cmake ../ -DBUILD_EXAMPLES=true -DBUILD_WITH_CUDA=true
15-
+cmake ../ -DCMAKE_CXX_FLAGS="-march=native -ffast-math" -DCMAKE_C_FLAGS="-march=native -ffast-math" -DBUILD_EXAMPLES=true -DBUILD_WITH_CUDA=true
15+
+cmake ../ -DCMAKE_CXX_FLAGS="-march=native -ffast-math" -DCMAKE_C_FLAGS="-march=native -ffast-math" -DBUILD_EXAMPLES=false -DBUILD_WITH_CUDA=true -DFORCE_RSUSB_BACKEND=true
1616
# The library will be installed in /usr/local/lib, header files in /usr/local/include
1717
# The demos, tutorials and tests will located in /usr/local/bin.
1818
echo "${green}Building librealsense, headers, tools and demos${reset}"

0 commit comments

Comments
 (0)