mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-20 02:25:14 -07:00
FindSodium.cmake MAKE VS FOLDER SELECTION GENERIC (#471)
This commit is contained in:
parent
3633726d56
commit
a81cea2366
@ -104,18 +104,14 @@ elseif (WIN32)
|
|||||||
message(FATAL_ERROR "the ${_TARGET_ARCH} architecture is not supported by Findsodium.cmake.")
|
message(FATAL_ERROR "the ${_TARGET_ARCH} architecture is not supported by Findsodium.cmake.")
|
||||||
endif()
|
endif()
|
||||||
string(APPEND _PLATFORM_PATH "/$$CONFIG$$")
|
string(APPEND _PLATFORM_PATH "/$$CONFIG$$")
|
||||||
# this will need to be maintained manually -.-'
|
|
||||||
if (MSVC_VERSION EQUAL 1600)
|
if (MSVC_VERSION LESS 1900)
|
||||||
string(APPEND _PLATFORM_PATH "/v100")
|
math(EXPR _VS_VERSION "${MSVC_VERSION} / 10 - 60")
|
||||||
elseif (MSVC_VERSION EQUAL 1700)
|
|
||||||
string(APPEND _PLATFORM_PATH "/v110")
|
|
||||||
elseif (MSVC_VERSION EQUAL 1800)
|
|
||||||
string(APPEND _PLATFORM_PATH "/v120")
|
|
||||||
elseif (MSVC_VERSION EQUAL 1900)
|
|
||||||
string(APPEND _PLATFORM_PATH "/v140")
|
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "msvc version ${MSVC_VERSION} is not supported by Findsodium.cmake.")
|
math(EXPR _VS_VERSION "${MSVC_VERSION} / 10 - 50")
|
||||||
endif()
|
endif()
|
||||||
|
string(APPEND _PLATFORM_PATH "/v${_VS_VERSION}")
|
||||||
|
|
||||||
if (sodium_USE_STATIC_LIBS)
|
if (sodium_USE_STATIC_LIBS)
|
||||||
string(APPEND _PLATFORM_PATH "/static")
|
string(APPEND _PLATFORM_PATH "/static")
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user