Don't set gcc-specific flags on VC
This commit is contained in:
parent
690c88e0c3
commit
9499590ad4
2 changed files with 7 additions and 3 deletions
|
@ -31,13 +31,15 @@ set(GettextTranslate_GMO_BINARY 1)
|
|||
|
||||
add_definitions(-DCRITERION_BUILDING_DLL=1)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -g -std=gnu99")
|
||||
if (NOT MSVC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -g -std=gnu99")
|
||||
endif ()
|
||||
|
||||
if (MSVC)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
|
||||
endif ()
|
||||
|
||||
if (WIN32)
|
||||
if (WIN32 AND NOT MSVC)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-no-undefined")
|
||||
endif()
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
set(CMAKE_C_FLAGS "-std=gnu99 -Wall -Wextra")
|
||||
if (NOT MSVC)
|
||||
set(CMAKE_C_FLAGS "-std=gnu99 -Wall -Wextra")
|
||||
endif ()
|
||||
|
||||
include_directories(../include ../src)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue