mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 09:18:54 -05:00
Add _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES for Windows
This commit is contained in:
parent
f2d01b61d3
commit
ce4f48b9bf
@ -61,11 +61,6 @@ add_definitions("-DCOPYRIGHT=\"${COPYRIGHT}\"")
|
||||
set(IDENTIFIER "com.${COMPANY}.${APPLICATION_NAME}")
|
||||
add_definitions("-DIDENTIFIER=\"${IDENTIFIER}\"")
|
||||
|
||||
add_compile_definitions(_USE_MATH_DEFINES)
|
||||
if(WIN32)
|
||||
add_compile_definitions(NOMINMAX)
|
||||
endif()
|
||||
|
||||
find_package(Git)
|
||||
if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git/")
|
||||
execute_process(COMMAND "${GIT_EXECUTABLE}" describe --tags
|
||||
|
@ -2,6 +2,15 @@ include_guard(GLOBAL)
|
||||
|
||||
include(DetectArchitecture)
|
||||
|
||||
if(WIN32)
|
||||
add_compile_definitions(
|
||||
NOMINMAX
|
||||
_USE_MATH_DEFINES
|
||||
_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES
|
||||
_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOT MSVC)
|
||||
add_compile_options(-Wall -Wextra -Wvla -Woverloaded-virtual -ffast-math -ftree-vectorize)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user