Merge pull request #551 from eco/patch-1

Add "d" library suffix for debug builds
This commit is contained in:
Lee Thomason 2017-05-05 19:55:08 -07:00 committed by GitHub
commit 174a5df3a3
1 changed files with 6 additions and 3 deletions

View File

@ -7,9 +7,9 @@ IF(BIICODE)
ENDIF(BIICODE)
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
cmake_policy(VERSION 2.6)
if(POLICY CMP0063)
cmake_policy(SET CMP0063 OLD)
endif()
if(POLICY CMP0063)
cmake_policy(SET CMP0063 OLD)
endif()
project(tinyxml2)
include(GNUInstallDirs)
@ -51,6 +51,9 @@ option(BUILD_STATIC_LIBS "build as static library" OFF)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
# to distinguish between debug and release lib
set(CMAKE_DEBUG_POSTFIX "d")
if(BUILD_SHARED_LIBS)
add_library(tinyxml2 SHARED tinyxml2.cpp tinyxml2.h)