Skip to content

Commit

Permalink
IMATH_INSTALL_PKG_CONFIG is on by default, even on Windows (#349)
Browse files Browse the repository at this point in the history
Similar to
AcademySoftwareFoundation/openexr#1541, there
seems to be no downside to generating the Imath.pc file even on
windows, so for consistency, apply the same default to all platforms.

Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm authored Oct 12, 2023
1 parent e92af36 commit 75fc048
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ if(IMATH_INSTALL_PKG_CONFIG)
)
endfunction()
imath_pkg_config_help(Imath.pc.in)
message(STATUS "Imath pkg-config generation enabled")
else()
message(STATUS "pkg-config generation disabled")
message(STATUS "Imath pkg-config generation disabled")
endif()

#
Expand Down
3 changes: 1 addition & 2 deletions config/ImathSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ set(IMATH_PACKAGE_NAME "Imath ${IMATH_VERSION}${IMATH_VERSION_RELEASE_TYPE}" CAC

# Whether to generate and install a pkg-config file Imath.pc on
if(WIN32)
option(IMATH_INSTALL_PKG_CONFIG "Install Imath.pc file" OFF)
option(IMATH_INSTALL_SYM_LINK "Create symbolic links for shared objects" OFF)
else()
option(IMATH_INSTALL_PKG_CONFIG "Install Imath.pc file" ON)
option(IMATH_INSTALL_SYM_LINK "Create symbolic links for shared objects" ON)
endif()
option(IMATH_INSTALL_PKG_CONFIG "Install Imath.pc file" ON)

#
# Build related options
Expand Down

0 comments on commit 75fc048

Please sign in to comment.