From 9b523bbf41a7cc1fc401a628b1aefba689d01424 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Sat, 26 Jan 2013 19:29:22 +0100 Subject: [PATCH] Fix openexr include flags --- kimgio/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 )