summaryrefslogtreecommitdiffstats
path: root/kimgio/CMakeLists.txt
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:29:22 +0100
commit9b523bbf41a7cc1fc401a628b1aefba689d01424 (patch)
tree687361659aefdfcf3b7fa8ef01c9711281a6e50c /kimgio/CMakeLists.txt
parentb7658a0d5eca24a9d37c6e04f88298ef02389db0 (diff)
downloadtdelibs-9b523bbf41a7cc1fc401a628b1aefba689d01424.tar.gz
tdelibs-9b523bbf41a7cc1fc401a628b1aefba689d01424.zip
Fix openexr include flags
Diffstat (limited to 'kimgio/CMakeLists.txt')
-rw-r--r--kimgio/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/kimgio/CMakeLists.txt b/kimgio/CMakeLists.txt
index f227b4f88..3b72a1db6 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 )