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.
1 parent f550f3a commit 63936ecCopy full SHA for 63936ec
CMakeLists.txt
@@ -91,6 +91,12 @@ SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
91
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
92
SET(DOC_OUTPUT_PATH ${CMAKE_BINARY_DIR}/doc)
93
94
+# let CFLAGS env override this
95
+if(CMAKE_C_FLAGS STREQUAL "")
96
+ set(CMAKE_C_FLAGS "-O2")
97
+endif()
98
+add_definitions(-Wall)
99
+
100
# Pretty much everyone is going to need the main includes
101
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/include)
102
src/CMakeLists.txt
@@ -4,7 +4,6 @@
4
5
include_directories (${CMAKE_CURRENT_SOURCE_DIR})
6
7
-set(CMAKE_C_FLAGS "-Wall")
8
include_directories(${LIBUSB_1_INCLUDE_DIRS})
9
LIST(APPEND SRC core.c tilt.c cameras.c usb_libusb10.c)
10
0 commit comments