summaryrefslogtreecommitdiffstats
path: root/kimgio
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2013-01-26 19:29:22 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-01-26 19:36:09 +0100
commita98a78b6550299473adad38345091ed1ea0d5cb0 (patch)
tree79cb6c2d64f3845e06c73f2824376601165a7a64 /kimgio
parent755fbfa4a105bdedc99bf9720cd61a235c4d31f8 (diff)
downloadtdelibs-a98a78b6550299473adad38345091ed1ea0d5cb0.tar.gz
tdelibs-a98a78b6550299473adad38345091ed1ea0d5cb0.zip
Fix openexr include flags
(cherry picked from commit 9b523bbf41a7cc1fc401a628b1aefba689d01424)
Diffstat (limited to 'kimgio')
-rw-r--r--kimgio/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/kimgio/CMakeLists.txt b/kimgio/CMakeLists.txt
index 5b09dfff2..ae5285d66 100644
--- a/kimgio/CMakeLists.txt
+++ b/kimgio/CMakeLists.txt
@@ -142,7 +142,8 @@ if( OPENEXR_FOUND )
DESTINATION ${PLUGIN_INSTALL_DIR}
)
# FIXME COMPILE_FLAGS must be written a little better
- set_target_properties( ${target}-module PROPERTIES COMPILE_FLAGS -I${OPENEXR_INCLUDE_DIRS} )
+ STRING(REGEX REPLACE ";" " -I" OPENEXR_INCLUDE_FLAGS "-I${OPENEXR_INCLUDE_DIRS}")
+ set_target_properties( ${target}-module PROPERTIES COMPILE_FLAGS "${OPENEXR_INCLUDE_FLAGS}" )
install( FILES exr.kimgio DESTINATION ${SERVICES_INSTALL_DIR} )
endif( OPENEXR_FOUND )