Skip to content

Commit

Permalink
Add headers to build so programs that can parse and display that will…
Browse files Browse the repository at this point in the history
… do so

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed Aug 10, 2019
1 parent eeae20a commit 19557bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions IlmBase/config/LibraryDefine.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ function(ILMBASE_DEFINE_LIBRARY libname)

if(use_objlib)
set(objlib ${libname}_Object)
add_library(${objlib} OBJECT ${ILMBASE_CURLIB_SOURCES})
add_library(${objlib} OBJECT
${ILMBASE_CURLIB_HEADERS}
${ILMBASE_CURLIB_SOURCES})
else()
set(objlib ${libname})
add_library(${objlib} ${ILMBASE_CURLIB_SOURCES})
add_library(${objlib}
${ILMBASE_CURLIB_HEADERS}
${ILMBASE_CURLIB_SOURCES})
endif()

target_compile_features(${objlib} PUBLIC cxx_std_${OPENEXR_CXX_STANDARD})
Expand Down
8 changes: 6 additions & 2 deletions OpenEXR/config/LibraryDefine.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ function(OPENEXR_DEFINE_LIBRARY libname)

if(use_objlib)
set(objlib ${libname}_Object)
add_library(${objlib} OBJECT ${OPENEXR_CURLIB_SOURCES})
add_library(${objlib} OBJECT
${OPENEXR_CURLIB_HEADERS}
${OPENEXR_CURLIB_SOURCES})
else()
set(objlib ${libname})
add_library(${objlib} ${OPENEXR_CURLIB_SOURCES})
add_library(${objlib}
${OPENEXR_CURLIB_HEADERS}
${OPENEXR_CURLIB_SOURCES})
endif()

target_compile_features(${objlib} PUBLIC cxx_std_${OPENEXR_CXX_STANDARD})
Expand Down

0 comments on commit 19557bf

Please sign in to comment.