]> granicus.if.org Git - openjpeg/commitdiff
Disable automatic compilation of t1_generate_luts
authorAntonin Descampe <antonin@gmail.com>
Tue, 20 Sep 2016 16:48:06 +0000 (18:48 +0200)
committerAntonin Descampe <antonin@gmail.com>
Tue, 20 Sep 2016 16:48:06 +0000 (18:48 +0200)
Fix #831

CMakeLists.txt
src/lib/openjp2/CMakeLists.txt

index 9b187a136863209434c554bf76ccdf31c755faf0..f55be537c7e241c35d171e04c4890275890f0f8c 100644 (file)
@@ -226,7 +226,7 @@ CHECK_INCLUDE_FILE("unistd.h"       HAVE_UNISTD_H)
 include(TestLargeFiles)
 OPJ_TEST_LARGE_FILES(OPJ_HAVE_LARGEFILES)
 
-# Allocating Aligned Memory Blocks
+# Allocating Aligned Memory Blocks
 include(CheckIncludeFiles)
 check_include_files(malloc.h OPJ_HAVE_MALLOC_H)
 include(CheckSymbolExists)
@@ -249,6 +249,7 @@ if(BUILD_JPIP_SERVER)
   endif()
 endif()
 add_subdirectory(src/lib)
+option(BUILD_LUTS_GENERATOR "Build utility to generate t1_luts.h" OFF)
 
 #-----------------------------------------------------------------------------
 # Build Applications
index 014be60351526c5a1ae118e567bb36e06dccfc29..b36905c928ead80a5c1a61651f7b19961626f8ba 100644 (file)
@@ -118,11 +118,13 @@ install(
   DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man3)
 endif()
 
-# internal utilities to generate t1_luts.h (part of the jp2 lib)
+if(BUILD_LUTS_GENERATOR)
+# internal utility to generate t1_luts.h (part of the jp2 lib)
 # no need to install:
-add_executable(t1_generate_luts t1_generate_luts.c)
-if(UNIX)
-  target_link_libraries(t1_generate_luts m)
+  add_executable(t1_generate_luts t1_generate_luts.c)
+  if(UNIX)
+    target_link_libraries(t1_generate_luts m)
+  endif()
 endif()
 
 # Experimental option; let's how cppcheck performs