Fix logic errors with BUILD_DWALOOKUPS
@@ -52,6 +52,8 @@ if (NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/dwaLookups.h")
dwaLookups.cpp
)
+ SET(BUILD_DWALOOKUPS ON)
+
SET_ILMBASE_INCLUDE_DIRS(dwaLookups)
IF (WIN32)
@@ -176,7 +178,7 @@ IF (BUILD_B44EXPLOGTABLE)
)
ENDIF ()
-iF (BUILD_DWALOOKUPS)
+IF (BUILD_DWALOOKUPS)
SET_SOURCE_FILES_PROPERTIES (
ImfDwaCompressor.cpp
PROPERTIES
@@ -214,12 +216,12 @@ IF ( OPENEXR_BUILD_SHARED )
OUTPUT_NAME "IlmImf${OPENEXR_LIBSUFFIX}"
)
- iF (BUILD_DWALOOKUPS)
- ADD_DEPENDENCIES ( IlmImf b44ExpLogTable )
+ IF (BUILD_DWALOOKUPS)
+ ADD_DEPENDENCIES ( IlmImf dwaLookups )
ENDIF ()
IF (BUILD_B44EXPLOGTABLE)
- ADD_DEPENDENCIES ( IlmImf dwaLookups )
+ ADD_DEPENDENCIES ( IlmImf b44ExpLogTable )
ENDIF()
ENDIF ()
