From 61595fc656233d0888ebd085c26ad5e2d83749ef Mon Sep 17 00:00:00 2001 From: Luis Ibanez Date: Wed, 1 Sep 2010 00:52:26 +0000 Subject: [PATCH] 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. --- codec/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)