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
4 changed files with 5 additions and 5 deletions
|
@ -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++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue