From 00aa77f2d92931b57731343d1833c29966ab1fe5 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 1 Oct 2012 14:50:26 +0000 Subject: [PATCH] [trunk] FolderReorgProposal fix. 3rd party variables were not set Update issue 177 --- CMakeLists.txt | 8 ++++++++ src/lib/openjp2/CMakeLists.txt | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea71f0d9..0c956efd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -202,6 +202,14 @@ if(BUILD_CODEC OR BUILD_MJ2) endif () add_subdirectory(wrapping) +#----------------------------------------------------------------------------- +# opj_config.h generation (2/2) +configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/src/lib/openjp2/opj_config.h.cmake.in + ${CMAKE_CURRENT_BINARY_DIR}/src/lib/openjp2/opj_config.h + @ONLY + ) + #----------------------------------------------------------------------------- # Build DOCUMENTATION (not in ALL target and only if Doxygen is found) option(BUILD_DOC "Build the HTML documentation (with doxygen if available)." OFF) diff --git a/src/lib/openjp2/CMakeLists.txt b/src/lib/openjp2/CMakeLists.txt index 8739ccaa..79ab16de 100644 --- a/src/lib/openjp2/CMakeLists.txt +++ b/src/lib/openjp2/CMakeLists.txt @@ -1,12 +1,5 @@ include_regular_expression("^.*$") -#----------------------------------------------------------------------------- -# opj_config.h generation (2/2) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/opj_config.h.cmake.in - ${CMAKE_CURRENT_BINARY_DIR}/opj_config.h - @ONLY - ) # install( FILES ${CMAKE_CURRENT_BINARY_DIR}/opj_config.h DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR} COMPONENT Headers)