mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-27 09:01:46 +00:00
cmake: Fix some details of Clang on Windows.
This commit is contained in:
parent
d0b00c7d23
commit
f4cc2f3bf4
|
@ -4,10 +4,14 @@
|
|||
if(NOT MSVC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic -Wall -Wextra -Wno-unused-parameter")
|
||||
set(CMAKE_C_FLAGS
|
||||
"${CMAKE_C_FLAGS} -Werror-implicit-function-declaration -Werror=incompatible-pointer-types"
|
||||
"${CMAKE_C_FLAGS} -Werror-implicit-function-declaration -Werror=incompatible-pointer-types"
|
||||
)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=int-conversion")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Wno-unused-parameter")
|
||||
endif()
|
||||
|
||||
if(NOT WIN32)
|
||||
# Even clang's gnu-style driver on windows doesn't accept this argument.
|
||||
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
|
||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
|
||||
|
|
|
@ -35,7 +35,7 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
if(NOT MSVC)
|
||||
if(NOT WIN32)
|
||||
# Force the main "negotiate" symbol's inclusion
|
||||
# and use a version script to ensure that's the only one we expose.
|
||||
set_property(
|
||||
|
|
Loading…
Reference in a new issue