cmake/Macros.cmake: ex:->examples:

vim interprets the # ex: comments as a modeline, which causes editing
this file with vim to throw an error.

Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
This commit is contained in:
Marty E. Plummer 2018-04-11 04:26:44 -05:00 committed by Lukas Dürrenberger
parent 192eb968a4
commit c828314d12

View File

@ -1,7 +1,7 @@
include(CMakeParseArguments) include(CMakeParseArguments)
# set the appropriate standard library on each platform for the given target # set the appropriate standard library on each platform for the given target
# ex: sfml_set_stdlib(sfml-system) # example: sfml_set_stdlib(sfml-system)
function(sfml_set_stdlib target) function(sfml_set_stdlib target)
# for gcc >= 4.0 on Windows, apply the SFML_USE_STATIC_STD_LIBS option if it is enabled # for gcc >= 4.0 on Windows, apply the SFML_USE_STATIC_STD_LIBS option if it is enabled
if(SFML_OS_WINDOWS AND SFML_COMPILER_GCC AND NOT SFML_GCC_VERSION VERSION_LESS "4") if(SFML_OS_WINDOWS AND SFML_COMPILER_GCC AND NOT SFML_GCC_VERSION VERSION_LESS "4")
@ -23,7 +23,7 @@ function(sfml_set_stdlib target)
endfunction() endfunction()
# add a new target which is a SFML library # add a new target which is a SFML library
# ex: sfml_add_library(sfml-graphics # example: sfml_add_library(sfml-graphics
# SOURCES sprite.cpp image.cpp ... # SOURCES sprite.cpp image.cpp ...
# [STATIC]) # Always create a static library and ignore BUILD_SHARED_LIBS # [STATIC]) # Always create a static library and ignore BUILD_SHARED_LIBS
macro(sfml_add_library target) macro(sfml_add_library target)
@ -178,7 +178,7 @@ macro(sfml_add_library target)
endmacro() endmacro()
# add a new target which is a SFML example # add a new target which is a SFML example
# ex: sfml_add_example(ftp # example: sfml_add_example(ftp
# SOURCES ftp.cpp ... # SOURCES ftp.cpp ...
# BUNDLE_RESOURCES MainMenu.nib ... # Files to be added in target but not installed next to the executable # BUNDLE_RESOURCES MainMenu.nib ... # Files to be added in target but not installed next to the executable
# DEPENDS sfml-network # DEPENDS sfml-network