CMake: When compiling Python to .pyc, optimize with -O

Distros seem to prefer having opt-1 Python modules and don't care
as much about the opt-2.
This commit is contained in:
Sam Edwards 2020-01-07 10:30:14 -07:00
parent 1eaf1654cd
commit fd94a33c56

View File

@ -70,7 +70,7 @@ if(changed AND DEFINED PYTHON_EXECUTABLES)
WORKING_DIRECTORY "${OUTPUT_DIR}")
execute_process(
COMMAND "${interp}" -OO -m compileall .
COMMAND "${interp}" -O -m compileall .
OUTPUT_QUIET
WORKING_DIRECTORY "${OUTPUT_DIR}")