File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ csfml_set_option(CSFML_LINK_SFML_STATICALLY ${LINK_STATICALLY_DEFAULT} BOOL "ON
46
46
47
47
# define an option for choosing between static and dynamic C runtime (Windows only)
48
48
if (SFML_OS_WINDOWS )
49
- set ( STATIC_STD_LIBS OFF CACHE BOOL "ON to statically link to the standard libraries, OFF to use them as DLLs" )
49
+ csfml_set_option ( CSFML_USE_STATIC_STD_LIBS OFF BOOL "ON to statically link to the standard libraries, OFF to use them as DLLs" )
50
50
endif ()
51
51
52
52
# find SFML libraries (C++)
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ macro(csfml_add_library target)
46
46
set_target_properties (${target} PROPERTIES MINSIZEREL_POSTFIX -s )
47
47
set_target_properties (${target} PROPERTIES RELWITHDEBINFO_POSTFIX -s )
48
48
49
- if (STATIC_STD_LIBS )
49
+ if (CSFML_USE_STATIC_STD_LIBS )
50
50
set_property (TARGET ${target} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
51
51
endif ()
52
52
endif ()
@@ -58,11 +58,11 @@ macro(csfml_add_library target)
58
58
# set the target's folder (for IDEs that support it, e.g. Visual Studio)
59
59
set_target_properties (${target} PROPERTIES FOLDER "CSFML" )
60
60
61
- # apply the SFML_USE_STATIC_STD_LIBS option if it is enabled
61
+ # apply the CSFML_USE_STATIC_STD_LIBS option if it is enabled
62
62
if (SFML_OS_WINDOWS AND SFML_COMPILER_GCC )
63
- if (SFML_USE_STATIC_STD_LIBS AND NOT SFML_COMPILER_GCC_TDM )
63
+ if (CSFML_USE_STATIC_STD_LIBS AND NOT SFML_COMPILER_GCC_TDM )
64
64
set_target_properties (${target} PROPERTIES LINK_FLAGS "-static-libgcc -static-libstdc++" )
65
- elseif (NOT SFML_USE_STATIC_STD_LIBS AND SFML_COMPILER_GCC_TDM )
65
+ elseif (NOT CSFML_USE_STATIC_STD_LIBS AND SFML_COMPILER_GCC_TDM )
66
66
set_target_properties (${target} PROPERTIES LINK_FLAGS "-shared-libgcc -shared-libstdc++" )
67
67
endif ()
68
68
endif ()
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ cmake `
154
154
" -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=$CSFMLLibDir " `
155
155
`
156
156
' -DCMAKE_SYSTEM_VERSION=8.1' `
157
- ' -DSTATIC_STD_LIBS =OFF' `
157
+ ' -DCSFML_USE_STATIC_STD_LIBS =OFF' `
158
158
`
159
159
' -DBUILD_SHARED_LIBS=ON' `
160
160
' -DCMAKE_BUILD_TYPE=Release' `
You can’t perform that action at this time.
0 commit comments