Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
add_compile_options(/W2 /bigobj /Zf)
add_compile_definitions(NOMINMAX _USE_MATH_DEFINES WIN32_LEAN_AND_MEAN)
else()
add_compile_options(-Wall -Wextra)
add_compile_options(-Wall -Wextra -march=native)
endif()

include(CTest)
else()
set(OUSTER_TOP_LEVEL OFF)
add_compile_options(-Wall -Wextra -march=native)
endif()

# === Subdirectories ===
Expand Down
1 change: 1 addition & 0 deletions ouster_osf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ add_library(ouster_osf STATIC src/compat_ops.cpp
src/fb_utils.cpp
src/writer.cpp
src/async_writer.cpp
src/zpng.cpp
src/png_lidarscan_encoder.cpp
)
set_property(TARGET ouster_osf PROPERTY POSITION_INDEPENDENT_CODE ON)
Expand Down
Loading