Removed the SFML_DYNAMIC symbol for dynamic builds, added SFML_STATIC for static builds
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1614 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
7ed866667d
commit
6a6ff075e8
@ -30,9 +30,9 @@ set(BUILD_EXAMPLES FALSE CACHE BOOL "TRUE to build the SFML examples, FALSE to i
|
||||
# add an option for building the API documentation
|
||||
set(BUILD_DOC FALSE CACHE BOOL "TRUE to generate the API documentation, FALSE to ignore it")
|
||||
|
||||
# define SFML_DYNAMIC if the build type is set to 'shared'
|
||||
if(BUILD_SHARED_LIBS)
|
||||
add_definitions(-DSFML_DYNAMIC)
|
||||
# define SFML_STATIC if the build type is not set to 'shared'
|
||||
if(NOT BUILD_SHARED_LIBS)
|
||||
add_definitions(-DSFML_STATIC)
|
||||
endif()
|
||||
|
||||
# remove SL security warnings with Visual C++
|
||||
|
@ -62,7 +62,6 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
#if defined(CSFML_SYSTEM_WINDOWS)
|
||||
|
||||
// Windows platforms
|
||||
#ifdef CSFML_EXPORTS
|
||||
|
||||
// From DLL side, we must export
|
||||
|
@ -17,6 +17,7 @@ add_definitions(-DCSFML_EXPORTS)
|
||||
# find SFML libraries (C++)
|
||||
if(WINDOWS)
|
||||
set(SFML_STATIC_LIBRARIES TRUE)
|
||||
add_definitions(-DSFML_STATIC)
|
||||
endif()
|
||||
find_package(SFML 2 COMPONENTS system window network graphics audio REQUIRED)
|
||||
include_directories(${SFML_INCLUDE_DIR})
|
||||
|
@ -95,7 +95,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
#if defined(SFML_SYSTEM_WINDOWS)
|
||||
|
||||
#ifdef SFML_DYNAMIC
|
||||
#ifndef SFML_STATIC
|
||||
|
||||
// Windows platforms
|
||||
#ifdef SFML_EXPORTS
|
||||
|
Loading…
Reference in New Issue
Block a user