Skip to content

Commit fef1e09

Browse files
committed
Prefix library options with CSFML_
1 parent 1b082ac commit fef1e09

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ csfml_set_option(CSFML_LINK_SFML_STATICALLY ${LINK_STATICALLY_DEFAULT} BOOL "ON
4646

4747
# define an option for choosing between static and dynamic C runtime (Windows only)
4848
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")
5050
endif()
5151

5252
# find SFML libraries (C++)

cmake/Macros.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ macro(csfml_add_library target)
4646
set_target_properties(${target} PROPERTIES MINSIZEREL_POSTFIX -s)
4747
set_target_properties(${target} PROPERTIES RELWITHDEBINFO_POSTFIX -s)
4848

49-
if(STATIC_STD_LIBS)
49+
if(CSFML_USE_STATIC_STD_LIBS)
5050
set_property(TARGET ${target} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
5151
endif()
5252
endif()
@@ -58,11 +58,11 @@ macro(csfml_add_library target)
5858
# set the target's folder (for IDEs that support it, e.g. Visual Studio)
5959
set_target_properties(${target} PROPERTIES FOLDER "CSFML")
6060

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
6262
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)
6464
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)
6666
set_target_properties(${target} PROPERTIES LINK_FLAGS "-shared-libgcc -shared-libstdc++")
6767
endif()
6868
endif()

tools/nuget/build.win.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ cmake `
154154
"-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=$CSFMLLibDir" `
155155
`
156156
'-DCMAKE_SYSTEM_VERSION=8.1' `
157-
'-DSTATIC_STD_LIBS=OFF' `
157+
'-DCSFML_USE_STATIC_STD_LIBS=OFF' `
158158
`
159159
'-DBUILD_SHARED_LIBS=ON' `
160160
'-DCMAKE_BUILD_TYPE=Release' `

0 commit comments

Comments
 (0)