diff options
author | Frediano Ziglio <freddy77@gmail.com> | 2022-06-13 08:52:00 +0100 |
---|---|---|
committer | Frediano Ziglio <freddy77@gmail.com> | 2022-06-15 14:01:37 +0100 |
commit | e9d487c75bcbdf01ca579d33a8b64063b8a40245 (patch) | |
tree | 906570a5a5b0963173dff8d0d1cb49a46e3c3017 | |
parent | c84f9942d7d57463c4790c8e0aad67c096c71415 (diff) |
Do not force library prefix for MSVC
Do not use Unix suffix under MSVC (for MingW is fine, not for
Microsoft standards where .lib is used).
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bf67b4a..da554fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,9 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.15") endif() project(vdagent-win) -set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") +if(NOT MSVC) + set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") +endif() # configure file(WRITE "${CMAKE_BINARY_DIR}/config.h.in" "/* Automatic generated by CMake */\n\n") |