Skip to content

Commit

Permalink
Compare CMAKE_BUILD_TYPE against Debug when generating pkg-config.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Jun 1, 2021
1 parent 5e1dbed commit ddb8025
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions IlmBase/config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ if(ILMBASE_INSTALL_PKG_CONFIG)
set(exec_prefix "\${prefix}")
set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
if(uppercase_CMAKE_BUILD_TYPE MATCHES DEBUG)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(LIB_SUFFIX_DASH ${ILMBASE_LIB_SUFFIX}${CMAKE_DEBUG_POSTFIX})
else()
set(LIB_SUFFIX_DASH ${ILMBASE_LIB_SUFFIX})
Expand Down
3 changes: 1 addition & 2 deletions OpenEXR/config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ if(OPENEXR_INSTALL_PKG_CONFIG)
set(exec_prefix "\${prefix}")
set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
if(uppercase_CMAKE_BUILD_TYPE MATCHES DEBUG)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(LIB_SUFFIX_DASH ${OPENEXR_LIB_SUFFIX}${CMAKE_DEBUG_POSTFIX})
else()
set(LIB_SUFFIX_DASH ${OPENEXR_LIB_SUFFIX})
Expand Down
3 changes: 1 addition & 2 deletions PyIlmBase/config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ if(PYILMBASE_INSTALL_PKG_CONFIG)
set(exec_prefix ${CMAKE_INSTALL_BINDIR})
set(libdir ${CMAKE_INSTALL_LIBDIR})
set(includedir ${CMAKE_INSTALL_INCLUDEDIR})
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
if(uppercase_CMAKE_BUILD_TYPE MATCHES DEBUG)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(LIB_SUFFIX_DASH ${OPENEXR_LIB_SUFFIX}${CMAKE_DEBUG_POSTFIX})
else()
set(LIB_SUFFIX_DASH ${OPENEXR_LIB_SUFFIX})
Expand Down

0 comments on commit ddb8025

Please sign in to comment.