COMP: Fixing configuration for static builds. Fixing dependencies that several
authorLuis Ibanez <luis.ibanez@gmail.com>
Wed, 1 Sep 2010 00:52:26 +0000 (00:52 +0000)
committerLuis Ibanez <luis.ibanez@gmail.com>
Wed, 1 Sep 2010 00:52:26 +0000 (00:52 +0000)
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

index 5ed13e7012f00ed7f0dfb934b0ba070e0e9f5b45..24595c7a9ceb3b3512d300af0a6c424d30980e00 100644 (file)
@@ -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)