From dbc9a01b53cf5d069a176f47d24de81c1c5efd69 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Fri, 22 Mar 2013 13:19:28 +0100 Subject: Fixed php build for other platforms again --- src/bindings/swig/php/CMakeLists.txt | 4 +++- src/bindings/swig/php/test.php | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bindings/swig/php/CMakeLists.txt b/src/bindings/swig/php/CMakeLists.txt index 83f5797..20caa12 100644 --- a/src/bindings/swig/php/CMakeLists.txt +++ b/src/bindings/swig/php/CMakeLists.txt @@ -65,7 +65,9 @@ foreach(PHP_LIBRARY ${PHP_LIBRARIES}) SWIG_LINK_LIBRARIES(uscxmlNativePHP ${PHP_LIBRARY}) endforeach() -set_target_properties(uscxmlNativePHP PROPERTIES LINK_FLAGS ${PHP_MODULE_CXX_FLAGS}) +if (APPLE) + set_target_properties(uscxmlNativePHP PROPERTIES LINK_FLAGS ${PHP_MODULE_CXX_FLAGS}) +endif() #set_target_properties(uscxmlNativePHP PROPERTIES LINK_FLAGS ${PHP_LDFLAGS}) set_target_properties(uscxmlNativePHP PROPERTIES FOLDER "Bindings") diff --git a/src/bindings/swig/php/test.php b/src/bindings/swig/php/test.php index 2700ded..66ad658 100644 --- a/src/bindings/swig/php/test.php +++ b/src/bindings/swig/php/test.php @@ -7,5 +7,6 @@ foreach ($exts as $e) } $interpreter = interpreter_fromuri('/Users/sradomski/Documents/TK/Code/uscxml/test/samples/uscxml/test-ecmascript.scxml'); +interpreter_interpret($interpreter); ?> \ No newline at end of file -- cgit v0.12