Commit 5127e2c8 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

only add MS Visual studio options when using MSVC (otherwize, mingw fails)

parent a48b2aeb
......@@ -24,7 +24,7 @@ project(dtk)
set(dtk_VERSION_MAJOR 1)
set(dtk_VERSION_MINOR 3)
set(dtk_VERSION_PATCH 2)
set(dtk_VERSION_PATCH 3)
set(dtk_VERSION
${dtk_VERSION_MAJOR}.${dtk_VERSION_MINOR}.${dtk_VERSION_PATCH})
......@@ -97,9 +97,9 @@ else(CMAKE_SIZEOF_VOID_P MATCHES 8)
set(DTK_BUILD_64 0)
endif(CMAKE_SIZEOF_VOID_P MATCHES 8)
if(WIN32)
if(MSVC)
add_definitions("/wd4068 /wd4244 /wd4996 /wd4005 /wd4305")
endif(WIN32)
endif(MSVC)
## #################################################################
## Options
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment