diff options
author | Kevin Rocard <kevin.rocard@intel.com> | 2015-02-03 19:02:00 +0100 |
---|---|---|
committer | Kevin Rocard <kevin.rocard@intel.com> | 2015-02-16 13:34:57 +0100 |
commit | 0f0dbe4c830d0878d55d969a2bfa8a9015a497b7 (patch) | |
tree | c05767b692a06c475802df80d4dff1f32b0b4c67 /bindings | |
parent | 84709c9e1d35e54e51ece60c41ad640412b7bfca (diff) | |
download | external_parameter-framework-0f0dbe4c830d0878d55d969a2bfa8a9015a497b7.zip external_parameter-framework-0f0dbe4c830d0878d55d969a2bfa8a9015a497b7.tar.gz external_parameter-framework-0f0dbe4c830d0878d55d969a2bfa8a9015a497b7.tar.bz2 |
Fix cmake set_property in python bindings
`SET_SOURCE_FILES_PROPERTIES(pfw.i PROPERTIES SWIG_FLAGS "-v" "-Wall"
"-Werror")` sets 2 variables:
- `SWIG_FLAGS="-v"`
- `-Wall="-Werror"`
which is obviously not what was wanted.
Replace by `SET_PROPERTY(SOURCE pfw.i PROPERTY SWIG_FLAGS "-v" "-Wall"
"-Werror")` that only sets `SWIG_FLAGS="-v -Wall -Werror"`.
Signed-off-by: Kevin Rocard <kevin.rocard@intel.com>
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index e9016b1..d2ffb51 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -34,8 +34,8 @@ INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH}) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) -SET_SOURCE_FILES_PROPERTIES(pfw.i PROPERTIES CPLUSPLUS ON) -SET_SOURCE_FILES_PROPERTIES(pfw.i PROPERTIES SWIG_FLAGS "-v" "-Wall" "-Werror") +SET_PROPERTY(SOURCE pfw.i PROPERTY CPLUSPLUS ON) +SET_PROPERTY(SOURCE pfw.i PROPERTY SWIG_FLAGS "-v" "-Wall" "-Werror") SWIG_ADD_MODULE(PyPfw python pfw.i) SWIG_LINK_LIBRARIES(PyPfw parameter ${PYTHON_LIBRARIES}) |