Skip to content

Commit

Permalink
CMake build: use consistent naming for tagged libraries.
Browse files Browse the repository at this point in the history
It should be the same as the one defined in the VC++ projects
and the ql/auto_link.hpp header.
  • Loading branch information
lballabio committed Mar 7, 2022
1 parent a803ac8 commit 99d2549
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Expand Up @@ -159,18 +159,18 @@ configure_file(ql/version.hpp.cfg ql/version.hpp @ONLY)

# Check for library name layout tagging
if (QL_TAGGED_LAYOUT)
set(DEBUG_POSTFIX "-mt")
set(RELEASE_POSTFIX "-mt")
if (${CMAKE_SIZEOF_VOID_P} EQUAL 8)
set(DEBUG_POSTFIX "-x64")
set(RELEASE_POSTFIX "-x64")
endif()
set(DEBUG_POSTFIX ${DEBUG_POSTFIX}-mt)
set(RELEASE_POSTFIX ${RELEASE_POSTFIX}-mt)
if (NOT BUILD_SHARED_LIBS)
set(DEBUG_POSTFIX ${DEBUG_POSTFIX}-sgd)
set(RELEASE_POSTFIX ${RELEASE_POSTFIX}-s)
else()
set(DEBUG_POSTFIX ${DEBUG_POSTFIX}-gd)
endif()
if (${CMAKE_SIZEOF_VOID_P} EQUAL 8)
set(DEBUG_POSTFIX ${DEBUG_POSTFIX}-x64)
set(RELEASE_POSTFIX ${RELEASE_POSTFIX}-x64)
endif()
set(CMAKE_DEBUG_POSTFIX ${DEBUG_POSTFIX})
set(CMAKE_RELEASE_POSTFIX ${RELEASE_POSTFIX})
set(CMAKE_RELWITHDEBINFO_POSTFIX ${RELEASE_POSTFIX})
Expand Down

0 comments on commit 99d2549

Please sign in to comment.