Skip to content

Commit

Permalink
fix pkg-config file for PyImath
Browse files Browse the repository at this point in the history
Bug: AcademySoftwareFoundation#101
Signed-off-by: Bernd Waibel <[email protected]>
  • Loading branch information
waebbl committed Feb 25, 2021
1 parent 071f0b5 commit c8c307d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/python/config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ if(IMATH_INSTALL_PKG_CONFIG)
# use a helper function to avoid variable pollution, but pretty simple
function(pyimath_pkg_config_help pcinfile)
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${CMAKE_INSTALL_BINDIR})
set(libdir ${CMAKE_INSTALL_LIBDIR})
set(includedir ${CMAKE_INSTALL_INCLUDEDIR})
set(LIB_SUFFIX_DASH ${OPENEXR_LIB_SUFFIX})
set(exec_prefix "\${prefix}")
set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
set(LIB_SUFFIX_DASH ${IMATH_LIB_SUFFIX})
string(REPLACE ".in" "" pcout ${pcinfile})
configure_file(${pcinfile} ${CMAKE_CURRENT_BINARY_DIR}/${pcout} @ONLY)
install(
Expand All @@ -27,6 +27,8 @@ if(IMATH_INSTALL_PKG_CONFIG)
)
endfunction()
pyimath_pkg_config_help(../PyImath.pc.in)
else()
message(STATUS "pkg-config generation disabled")
endif()

# The main export of the configuration - This is the
Expand Down

0 comments on commit c8c307d

Please sign in to comment.