Skip to content

Commit

Permalink
Fix logic errors with BUILD_DWALOOKUPS
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd authored and nickrasmussen committed Aug 8, 2018
1 parent 8e16aa8 commit dc7cb41
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions OpenEXR/IlmImf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -176,7 +178,7 @@ IF (BUILD_B44EXPLOGTABLE)
)
ENDIF ()

iF (BUILD_DWALOOKUPS)
IF (BUILD_DWALOOKUPS)
SET_SOURCE_FILES_PROPERTIES (
ImfDwaCompressor.cpp
PROPERTIES
Expand Down Expand Up @@ -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 ()
Expand Down

0 comments on commit dc7cb41

Please sign in to comment.