Fix quoting of PHP flags in cmake; see #1174

This commit is contained in:
Ian Bell
2016-08-03 20:38:30 -06:00
parent 97d536fcd9
commit cf74ce383f

View File

@@ -827,8 +827,8 @@ if (COOLPROP_PHP_MODULE)
OUTPUT_VARIABLE php_config_includes
RESULT_VARIABLE php_config_failed
)
string(STRIP ${php_config_includes} php_config_includes)
string(REPLACE "-I" "" PHP_INCLUDES ${php_config_includes})
string(STRIP "${php_config_includes}" php_config_includes)
string(REPLACE "-I" "" PHP_INCLUDES "${php_config_includes}")
SEPARATE_ARGUMENTS(PHP_INCLUDES)
message(STATUS "php includes=${PHP_INCLUDES}")