mirror of https://github.com/Chlumsky/msdfgen.git
Guard library pragma comments out of cmake builds (#120)
This commit is contained in:
parent
0b564462ef
commit
b681ec6527
|
|
@ -93,6 +93,8 @@ PRIVATE
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
target_compile_definitions(msdfgen-ext PUBLIC MSDFGEN_CMAKE_BUILD)
|
||||
|
||||
if(MSDFGEN_USE_CPP11)
|
||||
target_compile_features(msdfgen-ext PUBLIC cxx_std_11)
|
||||
target_compile_definitions(msdfgen-ext PUBLIC MSDFGEN_USE_CPP11)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
#include FT_FREETYPE_H
|
||||
#include FT_OUTLINE_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32) && !defined(MSDFGEN_CMAKE_BUILD)
|
||||
#pragma comment(lib, "freetype.lib")
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include "../core/edge-segments.h"
|
||||
#include "../core/Contour.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32) && !defined(MSDFGEN_CMAKE_BUILD)
|
||||
#pragma comment(lib, "skia.lib")
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue