|
|
@ -101,7 +101,7 @@ function(_pybind11_add_lto_flags target_name prefer_thin_lto) |
|
|
|
|
|
|
|
# Enable LTO flags if found, except for Debug builds |
|
|
|
if (PYBIND11_LTO_CXX_FLAGS) |
|
|
|
target_compile_options(${target_name} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:${PYBIND11_LTO_CXX_FLAGS}>") |
|
|
|
#target_compile_options(${target_name} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:${PYBIND11_LTO_CXX_FLAGS}>") |
|
|
|
endif() |
|
|
|
if (PYBIND11_LTO_LINKER_FLAGS) |
|
|
|
target_link_libraries(${target_name} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:${PYBIND11_LTO_LINKER_FLAGS}>") |
|
|
|