mirror of https://github.com/CGAL/cgal
Change the name mangling of CGAL libraries, on Windows
We adopt the naming scheme of Boost libraries, with the "lib" prefix for static libraries. And with the CGAL_VERSION as suffix. For example, static libraries will be named: libCGAL_Qt4-vc100-mt-gd-3.10-Ic-123.lib and DLL will be named: CGAL_Qt4-vc100-mt-gd-3.10-Ic-123.dll
This commit is contained in:
parent
cb2d3bbd64
commit
a49a4976a2
|
|
@ -1,5 +1,5 @@
|
||||||
// This header file is a copy of "boost/config/auto_link.hpp"
|
// This header file is a copy of "boost/config/auto_link.hpp"
|
||||||
// from boost version 1.33.1
|
// from boost version 1.44.0
|
||||||
// but slightly modified to accomodate CGAL libraries.
|
// but slightly modified to accomodate CGAL libraries.
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
|
|
@ -35,10 +35,14 @@ Before including this header you must define one or more of define the following
|
||||||
CGAL_LIB_NAME: Required: A string containing the basename of the library,
|
CGAL_LIB_NAME: Required: A string containing the basename of the library,
|
||||||
for example boost_regex.
|
for example boost_regex.
|
||||||
CGAL_LIB_TOOLSET: Optional: the base name of the toolset.
|
CGAL_LIB_TOOLSET: Optional: the base name of the toolset.
|
||||||
|
CGAL_BUILD_SHARED_LIBS: Optional: when set link to dll rather than static library.
|
||||||
CGAL_LIB_DIAGNOSTIC: Optional: when set the header will print out the name
|
CGAL_LIB_DIAGNOSTIC: Optional: when set the header will print out the name
|
||||||
of the library selected (useful for debugging).
|
of the library selected (useful for debugging).
|
||||||
CGAL_AUTO_LINK_NOMANGLE: Specifies that we should link to CGAL_LIB_NAME.lib,
|
CGAL_AUTO_LINK_NOMANGLE: Specifies that we should link to CGAL_LIB_NAME.lib,
|
||||||
rather than a mangled-name version.
|
rather than a mangled-name version.
|
||||||
|
CGAL_AUTO_LINK_TAGGED: Specifies that we link to libraries built with the --layout=tagged option.
|
||||||
|
This is essentially the same as the default name-mangled version, but without
|
||||||
|
the compiler name and version, or the Boost version. Just the build options.
|
||||||
|
|
||||||
ALL these macros will be undef'ed at the end of the header, even though they are defined from the outside.
|
ALL these macros will be undef'ed at the end of the header, even though they are defined from the outside.
|
||||||
That means you must always define them before including this.
|
That means you must always define them before including this.
|
||||||
|
|
@ -54,14 +58,19 @@ Libraries for Borland and Microsoft compilers are automatically
|
||||||
selected here, the name of the lib is selected according to the following
|
selected here, the name of the lib is selected according to the following
|
||||||
formula:
|
formula:
|
||||||
|
|
||||||
CGAL_LIB_NAME
|
CGAL_LIB_PREFIX
|
||||||
|
+ CGAL_LIB_NAME
|
||||||
+ "_"
|
+ "_"
|
||||||
+ CGAL_LIB_TOOLSET
|
+ CGAL_LIB_TOOLSET
|
||||||
+ CGAL_LIB_THREAD_OPT
|
+ CGAL_LIB_THREAD_OPT
|
||||||
+ CGAL_LIB_RT_OPT
|
+ CGAL_LIB_RT_OPT
|
||||||
|
"-"
|
||||||
|
+ CGAL_VERSION
|
||||||
|
|
||||||
These are defined as:
|
These are defined as:
|
||||||
|
|
||||||
|
CGAL_LIB_PREFIX: "lib" for static libraries otherwise "".
|
||||||
|
|
||||||
CGAL_LIB_NAME: The base name of the lib ( for example boost_regex).
|
CGAL_LIB_NAME: The base name of the lib ( for example boost_regex).
|
||||||
|
|
||||||
CGAL_LIB_TOOLSET: The compiler toolset name (vc71, vc80 etc).
|
CGAL_LIB_TOOLSET: The compiler toolset name (vc71, vc80 etc).
|
||||||
|
|
@ -73,10 +82,14 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
a hiphen:
|
a hiphen:
|
||||||
|
|
||||||
s static runtime (dynamic if not present).
|
s static runtime (dynamic if not present).
|
||||||
|
g debug/diagnostic runtime (release if not present).
|
||||||
|
y Python debug/diagnostic runtime (release if not present).
|
||||||
d debug build (release if not present).
|
d debug build (release if not present).
|
||||||
g debug/diagnostic runtime (release if not present).
|
g debug/diagnostic runtime (release if not present).
|
||||||
p STLPort Build.
|
p STLPort Build.
|
||||||
|
|
||||||
|
CGAL_VERSION: Defined in <CGAL/version.h>
|
||||||
|
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
|
@ -91,7 +104,7 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
// C language compatability (no, honestly)
|
// C language compatability (no, honestly)
|
||||||
//
|
//
|
||||||
# define BOOST_MSVC _MSC_VER
|
# define BOOST_MSVC _MSC_VER
|
||||||
# define BOOST_STRINGIZEIZE(X) BOOST_DO_STRINGIZE(X)
|
# define BOOST_STRINGIZE(X) BOOST_DO_STRINGIZE(X)
|
||||||
# define BOOST_DO_STRINGIZE(X) #X
|
# define BOOST_DO_STRINGIZE(X) #X
|
||||||
#endif
|
#endif
|
||||||
//
|
//
|
||||||
|
|
@ -102,6 +115,10 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
|| (defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) \
|
|| (defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) \
|
||||||
|| (defined(__ICL) && defined(_MSC_EXTENSIONS) && (_MSC_VER >= 1200))
|
|| (defined(__ICL) && defined(_MSC_EXTENSIONS) && (_MSC_VER >= 1200))
|
||||||
|
|
||||||
|
#ifndef CGAL_VERSION
|
||||||
|
# include <CGAL/version.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CGAL_LIB_NAME
|
#ifndef CGAL_LIB_NAME
|
||||||
# error "Macro CGAL_LIB_NAME not set (internal error)"
|
# error "Macro CGAL_LIB_NAME not set (internal error)"
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -118,10 +135,16 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
// select toolset if not defined already:
|
// select toolset if not defined already:
|
||||||
//
|
//
|
||||||
#ifndef CGAL_LIB_TOOLSET
|
#ifndef CGAL_LIB_TOOLSET
|
||||||
#if defined(BOOST_MSVC) && (BOOST_MSVC == 1200)
|
// Note: no compilers before 1200 are supported
|
||||||
|
#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
|
||||||
|
|
||||||
// vc6:
|
# ifdef UNDER_CE
|
||||||
# define CGAL_LIB_TOOLSET "vc6"
|
// vc6:
|
||||||
|
# define CGAL_LIB_TOOLSET "evc4"
|
||||||
|
# else
|
||||||
|
// vc6:
|
||||||
|
# define CGAL_LIB_TOOLSET "vc6"
|
||||||
|
# endif
|
||||||
|
|
||||||
#elif defined(BOOST_MSVC) && (BOOST_MSVC == 1300)
|
#elif defined(BOOST_MSVC) && (BOOST_MSVC == 1300)
|
||||||
|
|
||||||
|
|
@ -186,8 +209,16 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
|
|
||||||
# if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && (defined(_STLP_OWN_IOSTREAMS) || defined(__STL_OWN_IOSTREAMS))
|
# if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && (defined(_STLP_OWN_IOSTREAMS) || defined(__STL_OWN_IOSTREAMS))
|
||||||
|
|
||||||
# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
|
# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))\
|
||||||
|
&& defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-gydp"
|
||||||
|
# elif defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
|
||||||
# define CGAL_LIB_RT_OPT "-gdp"
|
# define CGAL_LIB_RT_OPT "-gdp"
|
||||||
|
# elif defined(_DEBUG)\
|
||||||
|
&& defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-gydp"
|
||||||
|
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
||||||
|
# error "Build options aren't compatible with pre-built libraries"
|
||||||
# elif defined(_DEBUG)
|
# elif defined(_DEBUG)
|
||||||
# define CGAL_LIB_RT_OPT "-gdp"
|
# define CGAL_LIB_RT_OPT "-gdp"
|
||||||
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
||||||
|
|
@ -198,8 +229,16 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
|
|
||||||
# elif defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
|
# elif defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
|
||||||
|
|
||||||
# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
|
# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))\
|
||||||
|
&& defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-gydpn"
|
||||||
|
# elif defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
|
||||||
# define CGAL_LIB_RT_OPT "-gdpn"
|
# define CGAL_LIB_RT_OPT "-gdpn"
|
||||||
|
# elif defined(_DEBUG)\
|
||||||
|
&& defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-gydpn"
|
||||||
|
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
||||||
|
# error "Build options aren't compatible with pre-built libraries"
|
||||||
# elif defined(_DEBUG)
|
# elif defined(_DEBUG)
|
||||||
# define CGAL_LIB_RT_OPT "-gdpn"
|
# define CGAL_LIB_RT_OPT "-gdpn"
|
||||||
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
||||||
|
|
@ -210,7 +249,9 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
|
|
||||||
# else
|
# else
|
||||||
|
|
||||||
# if defined(_DEBUG)
|
# if defined(_DEBUG) && defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-gyd"
|
||||||
|
# elif defined(_DEBUG)
|
||||||
# define CGAL_LIB_RT_OPT "-gd"
|
# define CGAL_LIB_RT_OPT "-gd"
|
||||||
# else
|
# else
|
||||||
# define CGAL_LIB_RT_OPT
|
# define CGAL_LIB_RT_OPT
|
||||||
|
|
@ -222,8 +263,16 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
|
|
||||||
# if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && (defined(_STLP_OWN_IOSTREAMS) || defined(__STL_OWN_IOSTREAMS))
|
# if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && (defined(_STLP_OWN_IOSTREAMS) || defined(__STL_OWN_IOSTREAMS))
|
||||||
|
|
||||||
# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
|
# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))\
|
||||||
|
&& defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-sgydp"
|
||||||
|
# elif defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
|
||||||
# define CGAL_LIB_RT_OPT "-sgdp"
|
# define CGAL_LIB_RT_OPT "-sgdp"
|
||||||
|
# elif defined(_DEBUG)\
|
||||||
|
&& defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-sgydp"
|
||||||
|
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
||||||
|
# error "Build options aren't compatible with pre-built libraries"
|
||||||
# elif defined(_DEBUG)
|
# elif defined(_DEBUG)
|
||||||
# define CGAL_LIB_RT_OPT "-sgdp"
|
# define CGAL_LIB_RT_OPT "-sgdp"
|
||||||
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
||||||
|
|
@ -234,8 +283,16 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
|
|
||||||
# elif defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
|
# elif defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
|
||||||
|
|
||||||
# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
|
# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))\
|
||||||
|
&& defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-sgydpn"
|
||||||
|
# elif defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
|
||||||
# define CGAL_LIB_RT_OPT "-sgdpn"
|
# define CGAL_LIB_RT_OPT "-sgdpn"
|
||||||
|
# elif defined(_DEBUG)\
|
||||||
|
&& defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-sgydpn"
|
||||||
|
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
||||||
|
# error "Build options aren't compatible with pre-built libraries"
|
||||||
# elif defined(_DEBUG)
|
# elif defined(_DEBUG)
|
||||||
# define CGAL_LIB_RT_OPT "-sgdpn"
|
# define CGAL_LIB_RT_OPT "-sgdpn"
|
||||||
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
|
||||||
|
|
@ -246,7 +303,10 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
|
|
||||||
# else
|
# else
|
||||||
|
|
||||||
# if defined(_DEBUG)
|
# if defined(_DEBUG)\
|
||||||
|
&& defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-sgyd"
|
||||||
|
# elif defined(_DEBUG)
|
||||||
# define CGAL_LIB_RT_OPT "-sgd"
|
# define CGAL_LIB_RT_OPT "-sgd"
|
||||||
# else
|
# else
|
||||||
# define CGAL_LIB_RT_OPT "-s"
|
# define CGAL_LIB_RT_OPT "-s"
|
||||||
|
|
@ -273,16 +333,26 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
|
|
||||||
# ifdef _RTLDLL
|
# ifdef _RTLDLL
|
||||||
|
|
||||||
# ifdef CGAL_BORLAND_DEBUG
|
# if defined(CGAL_BORLAND_DEBUG)\
|
||||||
|
&& defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-yd"
|
||||||
|
# elif defined(CGAL_BORLAND_DEBUG)
|
||||||
# define CGAL_LIB_RT_OPT "-d"
|
# define CGAL_LIB_RT_OPT "-d"
|
||||||
|
# elif defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT -y
|
||||||
# else
|
# else
|
||||||
# define CGAL_LIB_RT_OPT
|
# define CGAL_LIB_RT_OPT
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# else
|
# else
|
||||||
|
|
||||||
# ifdef CGAL_BORLAND_DEBUG
|
# if defined(CGAL_BORLAND_DEBUG)\
|
||||||
|
&& defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-syd"
|
||||||
|
# elif defined(CGAL_BORLAND_DEBUG)
|
||||||
# define CGAL_LIB_RT_OPT "-sd"
|
# define CGAL_LIB_RT_OPT "-sd"
|
||||||
|
# elif defined(CGAL_DEBUG_PYTHON) && defined(CGAL_LINKING_PYTHON)
|
||||||
|
# define CGAL_LIB_RT_OPT "-sy"
|
||||||
# else
|
# else
|
||||||
# define CGAL_LIB_RT_OPT "-s"
|
# define CGAL_LIB_RT_OPT "-s"
|
||||||
# endif
|
# endif
|
||||||
|
|
@ -291,23 +361,42 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//
|
||||||
|
// select linkage opt:
|
||||||
|
//
|
||||||
|
#if (defined(_DLL) || defined(_RTLDLL)) && defined(CGAL_BUILD_SHARED_LIBS)
|
||||||
|
# define CGAL_LIB_PREFIX
|
||||||
|
#elif defined(CGAL_BUILD_SHARED_LIBS)
|
||||||
|
# error "Mixing a dll CGAL library with a static runtime is a really bad idea..."
|
||||||
|
#else
|
||||||
|
# define CGAL_LIB_PREFIX "lib"
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// now include the lib:
|
// now include the lib:
|
||||||
//
|
//
|
||||||
#if defined(CGAL_LIB_NAME) \
|
#if defined(CGAL_LIB_NAME) \
|
||||||
|
&& defined(CGAL_LIB_PREFIX) \
|
||||||
&& defined(CGAL_LIB_TOOLSET) \
|
&& defined(CGAL_LIB_TOOLSET) \
|
||||||
&& defined(CGAL_LIB_THREAD_OPT) \
|
&& defined(CGAL_LIB_THREAD_OPT) \
|
||||||
&& defined(CGAL_LIB_RT_OPT) \
|
&& defined(CGAL_LIB_RT_OPT) \
|
||||||
|
&& defined(CGAL_VERSION)
|
||||||
|
|
||||||
#ifndef CGAL_AUTO_LINK_NOMANGLE
|
#ifdef CGAL_AUTO_LINK_TAGGED
|
||||||
# define CGAL_LIB_FULL_NAME BOOST_STRINGIZE(CGAL_LIB_NAME) "-" CGAL_LIB_TOOLSET CGAL_LIB_THREAD_OPT CGAL_LIB_RT_OPT ".lib"
|
# pragma commentcomment(lib, CGAL_LIB_PREFIX BOOST_STRINGIZE(CGAL_LIB_NAME) CGAL_LIB_THREAD_OPT CGAL_LIB_RT_OPT ".lib")
|
||||||
|
# ifdef CGAL_LIB_DIAGNOSTIC
|
||||||
|
# pragma message ("Linking to lib file: " CGAL_LIB_PREFIX BOOST_STRINGIZE(CGAL_LIB_NAME) "-" CGAL_LIB_TOOLSET CGAL_LIB_THREAD_OPT CGAL_LIB_RT_OPT "-" BOOST_STRINGIZE(CGAL_VERSION) ".lib")
|
||||||
|
# endif
|
||||||
|
#elif defined(CGAL_AUTO_LINK_NOMANGLE)
|
||||||
|
# pragma comment(lib, BOOST_STRINGIZE(CGAL_LIB_NAME) ".lib")
|
||||||
|
# ifdef CGAL_LIB_DIAGNOSTIC
|
||||||
|
# pragma message ("Linking to lib file: " BOOST_STRINGIZE(CGAL_LIB_NAME) ".lib")
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# define CGAL_LIB_FULL_NAME BOOST_STRINGIZE(CGAL_LIB_NAME) ".lib"
|
# pragma comment(lib, CGAL_LIB_PREFIX BOOST_STRINGIZE(CGAL_LIB_NAME) "-" CGAL_LIB_TOOLSET CGAL_LIB_THREAD_OPT CGAL_LIB_RT_OPT "-" BOOST_STRINGIZE(CGAL_VERSION) ".lib")
|
||||||
#endif
|
# ifdef CGAL_LIB_DIAGNOSTIC
|
||||||
|
# pragma message ("Linking to lib file: " CGAL_LIB_PREFIX BOOST_STRINGIZE(CGAL_LIB_NAME) "-" CGAL_LIB_TOOLSET CGAL_LIB_THREAD_OPT CGAL_LIB_RT_OPT "-" BOOST_STRINGIZE(CGAL_VERSION) ".lib")
|
||||||
#pragma comment(lib, CGAL_LIB_FULL_NAME )
|
# endif
|
||||||
#ifdef CGAL_LIB_DIAGNOSTIC
|
|
||||||
# pragma message ("(CGAL auto-link diagnostic) Linking to lib file: " CGAL_LIB_FULL_NAME )
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
@ -322,12 +411,17 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
//
|
//
|
||||||
// finally undef any macros we may have set:
|
// finally undef any macros we may have set:
|
||||||
//
|
//
|
||||||
|
#ifdef CGAL_LIB_PREFIX
|
||||||
|
# undef CGAL_LIB_PREFIX
|
||||||
|
#endif
|
||||||
#if defined(CGAL_LIB_NAME)
|
#if defined(CGAL_LIB_NAME)
|
||||||
# undef CGAL_LIB_NAME
|
# undef CGAL_LIB_NAME
|
||||||
#endif
|
#endif
|
||||||
#if defined(CGAL_LIB_TOOLSET)
|
// Don't undef this one: it can be set by the user and should be the
|
||||||
# undef CGAL_LIB_TOOLSET
|
// same for all libraries:
|
||||||
#endif
|
//#if defined(CGAL_LIB_TOOLSET)
|
||||||
|
//# undef CGAL_LIB_TOOLSET
|
||||||
|
//#endif
|
||||||
#if defined(CGAL_LIB_THREAD_OPT)
|
#if defined(CGAL_LIB_THREAD_OPT)
|
||||||
# undef CGAL_LIB_THREAD_OPT
|
# undef CGAL_LIB_THREAD_OPT
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -337,9 +431,12 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used,
|
||||||
#if defined(CGAL_LIB_LINK_OPT)
|
#if defined(CGAL_LIB_LINK_OPT)
|
||||||
# undef CGAL_LIB_LINK_OPT
|
# undef CGAL_LIB_LINK_OPT
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(CGAL_LIB_DEBUG_OPT)
|
||||||
|
# undef CGAL_LIB_DEBUG_OPT
|
||||||
|
#endif
|
||||||
|
#if defined(CGAL_DYN_LINK)
|
||||||
|
# undef CGAL_DYN_LINK
|
||||||
|
#endif
|
||||||
#if defined(CGAL_AUTO_LINK_NOMANGLE)
|
#if defined(CGAL_AUTO_LINK_NOMANGLE)
|
||||||
# undef CGAL_AUTO_LINK_NOMANGLE
|
# undef CGAL_AUTO_LINK_NOMANGLE
|
||||||
#endif
|
#endif
|
||||||
#if defined(CGAL_LIB_FULL_NAME)
|
|
||||||
# undef CGAL_LIB_FULL_NAME
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -36,11 +36,16 @@ function (build_cgal_library LIBRARY_NAME LIBRARY_DIR_NAME ADDITIONAL_FILES)
|
||||||
mark_as_advanced(${LIBRARY_NAME}_LIBRARY)
|
mark_as_advanced(${LIBRARY_NAME}_LIBRARY)
|
||||||
else(NOT CGAL_AUTO_LINK_ENABLED)
|
else(NOT CGAL_AUTO_LINK_ENABLED)
|
||||||
set(${LIBRARY_NAME}_LIBRARY)
|
set(${LIBRARY_NAME}_LIBRARY)
|
||||||
|
if(CGAL_BUILD_SHARED_LIBS)
|
||||||
set(${LIBRARY_NAME}_RELEASE_MANGLED_NAME "${LIBRARY_NAME}-${CGAL_TOOLSET}-mt" )
|
set(CGAL_LIB_PREFIX "lib")
|
||||||
set(${LIBRARY_NAME}_DEBUG_MANGLED_NAME "${LIBRARY_NAME}-${CGAL_TOOLSET}-mt-gd" )
|
else()
|
||||||
set(${LIBRARY_NAME}_MINSIZEREL_MANGLED_NAME "${LIBRARY_NAME}-${CGAL_TOOLSET}-mt-o" )
|
set(CGAL_LIB_PREFIX "")
|
||||||
set(${LIBRARY_NAME}_RELWITHDEBINFO_MANGLED_NAME "${LIBRARY_NAME}-${CGAL_TOOLSET}-mt-g" )
|
endif()
|
||||||
|
|
||||||
|
set(${LIBRARY_NAME}_RELEASE_MANGLED_NAME "${CGAL_LIB_PREFIX}${LIBRARY_NAME}-${CGAL_TOOLSET}-mt-${CGAL_VERSION}" )
|
||||||
|
set(${LIBRARY_NAME}_DEBUG_MANGLED_NAME "${CGAL_LIB_PREFIX}${LIBRARY_NAME}-${CGAL_TOOLSET}-mt-gd-${CGAL_VERSION}" )
|
||||||
|
set(${LIBRARY_NAME}_MINSIZEREL_MANGLED_NAME "${CGAL_LIB_PREFIX}${LIBRARY_NAME}-${CGAL_TOOLSET}-mt-o-${CGAL_VERSION}" )
|
||||||
|
set(${LIBRARY_NAME}_RELWITHDEBINFO_MANGLED_NAME "${CGAL_LIB_PREFIX}${LIBRARY_NAME}-${CGAL_TOOLSET}-mt-g-${CGAL_VERSION}" )
|
||||||
|
|
||||||
set_target_properties( ${LIBRARY_NAME} PROPERTIES DEBUG_OUTPUT_NAME "${${LIBRARY_NAME}_DEBUG_MANGLED_NAME}"
|
set_target_properties( ${LIBRARY_NAME} PROPERTIES DEBUG_OUTPUT_NAME "${${LIBRARY_NAME}_DEBUG_MANGLED_NAME}"
|
||||||
RELEASE_OUTPUT_NAME "${${LIBRARY_NAME}_RELEASE_MANGLED_NAME}"
|
RELEASE_OUTPUT_NAME "${${LIBRARY_NAME}_RELEASE_MANGLED_NAME}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue