From: Luis Ibanez Date: Wed, 1 Sep 2010 00:52:26 +0000 (+0000) Subject: COMP: Fixing configuration for static builds. Fixing dependencies that several X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=61595fc656233d0888ebd085c26ad5e2d83749ef;p=openjpeg.git COMP: Fixing configuration for static builds. Fixing dependencies that several executables have on getopt.c, convert.c and index.c. Some refactoring is going to be required in order to have a cleaner configuration process and make it easier to maintain. --- diff --git a/codec/CMakeLists.txt b/codec/CMakeLists.txt index 5ed13e70..24595c7a 100644 --- a/codec/CMakeLists.txt +++ b/codec/CMakeLists.txt @@ -27,9 +27,9 @@ ENDIF(DONT_HAVE_GETOPT) # Do the proper thing when building static...if only there was configured # headers or def files instead -#IF(NOT BUILD_SHARED_LIBS) -# ADD_DEFINITIONS(-DOPJ_STATIC) -#ENDIF(NOT BUILD_SHARED_LIBS) +IF(NOT BUILD_SHARED_LIBS) + ADD_DEFINITIONS(-DOPJ_STATIC) +ENDIF(NOT BUILD_SHARED_LIBS) #FIND_PACKAGE(TIFF REQUIRED)