Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Commit da52ded

Browse files
authored
Update to allow FindILMBase.cmake to work with modern cmake
When attempting to compile Field3D support into OpenImageIO, I was unable to get Field3D to be found with the above cmake file. The following changes I am suggesting in order to allow it to be found more accurately in a modern environment.
1 parent 071129f commit da52ded

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmake/FindILMBase.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
# ILMBASE_FOUND - true if ILMBASE was found on the system
3838
# ILMBASE_LIBRARY_DIRS - the full set of library directories
3939

40-
FIND_PATH ( Ilmbase_Base_Dir include/OpenEXR/IlmBaseConfig.h
41-
ENV ILMBASE_ROOT
40+
FIND_PATH ( Ilmbase_Base_Dir NAMES include/OpenEXR/IlmBaseConfig.h
41+
PATHS ${ILMBASE_ROOT}
4242
)
4343

4444
IF ( Ilmbase_Base_Dir )
@@ -47,7 +47,7 @@ IF ( Ilmbase_Base_Dir )
4747
${Ilmbase_Base_Dir}/include
4848
${Ilmbase_Base_Dir}/include/OpenEXR
4949
CACHE STRING "ILMBase include directories")
50-
SET ( ILMBASE_LIBRARY_DIRS ${Ilmbase_Base_Dir}/lib
50+
SET ( ILMBASE_LIBRARY_DIRS ${Ilmbase_Base_Dir}/lib64
5151
CACHE STRING "ILMBase library directories")
5252
SET ( ILMBASE_FOUND TRUE )
5353

0 commit comments

Comments
 (0)