Skip to content
Snippets Groups Projects

MSVC compatibility

Merged Reinhard Biegel requested to merge feature/hlrs_msvc_compatibility into develop
46 files
+ 109
218
Compare changes
  • Side-by-side
  • Inline
Files
46
+ 5
2
@@ -56,8 +56,10 @@ if(USE_CCACHE)
set(CMAKE_CXX_COMPILER_LAUNCHER ccache)
endif()
set(CMAKE_C_FLAGS_DEBUG "-g -O0")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
if(NOT WIN32)
set(CMAKE_C_FLAGS_DEBUG "-g -O0")
set(CMAKE_CXX_FLAGS_DEBUG "-g -g -O0")
endif()
if(MINGW)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
@@ -112,6 +114,7 @@ endif()
if(WIN32)
set(CMAKE_INSTALL_PREFIX "C:/OpenPASS" CACHE PATH "Destination directory")
add_compile_definitions(WIN32)
add_compile_definitions(NOMINMAX) #we use c++ min and max from <limits> this prevents windows.h from defining min and max
add_compile_definitions(BOOST_ALL_NO_LIB)
add_compile_definitions(BOOST_ALL_DYN_LINK)
add_compile_definitions(_USE_MATH_DEFINES)
Loading