mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
enable all O3 optimizations
This commit is contained in:
parent
047cc2c3a6
commit
3516f148ef
@ -27,6 +27,10 @@ set(CMAKE_CXX_STANDARD 11)
|
|||||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/bin/gcc)
|
set(CMAKE_C_COMPILER /usr/bin/gcc)
|
||||||
|
# enables all -O3 optimizations
|
||||||
|
|
||||||
|
add_definitions(-Ofast)
|
||||||
|
add_definitions(-Wno-unused-result)
|
||||||
|
|
||||||
# Find includes in corresponding build directories
|
# Find includes in corresponding build directories
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
Loading…
Reference in New Issue
Block a user