mirror of https://github.com/davisking/dlib.git
Disable LTO since it basically just makes the build process slow.
This commit is contained in:
parent
e248cc8fba
commit
ea2fbcab5c
|
@ -1,10 +1,11 @@
|
||||||
|
|
||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
|
||||||
|
|
||||||
# Set this to disable link time optimization. The only reason for
|
# Pybind11's cmake scripts enable link time optimization by default. However,
|
||||||
# doing this to make the compile faster which is nice when developing
|
# it makes linking take a really long time and doesn't seem to substantively
|
||||||
# new modules.
|
# improve runtime performance. So we disable LTO here to make building dlib
|
||||||
# set(PYBIND11_LTO_CXX_FLAGS "")
|
# faster.
|
||||||
|
set(PYBIND11_LTO_CXX_FLAGS "")
|
||||||
|
|
||||||
|
|
||||||
# Avoid cmake warnings about changes in behavior of some Mac OS X path
|
# Avoid cmake warnings about changes in behavior of some Mac OS X path
|
||||||
|
|
Loading…
Reference in New Issue