Skip to content

Commit 50f5ee9

Browse files
committed
IMATH_INSTALL_PKG_CONFIG is on by default, even on Windows
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 <[email protected]>
1 parent 4d4e01c commit 50f5ee9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ if(IMATH_INSTALL_PKG_CONFIG)
5858
)
5959
endfunction()
6060
imath_pkg_config_help(Imath.pc.in)
61+
message(STATUS "Imath pkg-config generation enabled")
6162
else()
62-
message(STATUS "pkg-config generation disabled")
63+
message(STATUS "Imath pkg-config generation disabled")
6364
endif()
6465

6566
#

config/ImathSetup.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@ set(IMATH_PACKAGE_NAME "Imath ${IMATH_VERSION}${IMATH_VERSION_RELEASE_TYPE}" CAC
3838

3939
# Whether to generate and install a pkg-config file Imath.pc on
4040
if(WIN32)
41-
option(IMATH_INSTALL_PKG_CONFIG "Install Imath.pc file" OFF)
4241
option(IMATH_INSTALL_SYM_LINK "Create symbolic links for shared objects" OFF)
4342
else()
44-
option(IMATH_INSTALL_PKG_CONFIG "Install Imath.pc file" ON)
4543
option(IMATH_INSTALL_SYM_LINK "Create symbolic links for shared objects" ON)
4644
endif()
45+
option(IMATH_INSTALL_PKG_CONFIG "Install Imath.pc file" ON)
4746

4847
#
4948
# Build related options

0 commit comments

Comments
 (0)