cmake: use option() for STATIC

This commit is contained in:
Ben Boeckel 2014-10-21 14:20:26 -04:00
parent c24d22b44e
commit 799e8b241f
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ if(MSVC OR MINGW)
else()
set(DEFAULT_STATIC false)
endif()
set(STATIC ${DEFAULT_STATIC} CACHE BOOL "Link libraries statically")
option(STATIC "Link libraries statically" ${DEFAULT_STATIC})
IF(STATIC)
IF(MSVC)