mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #4281
DX37 (1): chore(build): Remove '-pie' linker flag and fix strmiids dependency on Windows
This commit is contained in:
commit
f839abf33f
|
@ -46,11 +46,11 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstrict-overflow")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstrict-aliasing")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
|
||||
|
||||
if (NOT WIN32)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstack-protector")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
|
||||
endif()
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
|
|
|
@ -119,6 +119,10 @@ if(APPLE)
|
|||
search_dependency(IOKIT FRAMEWORK IOKit OPTIONAL)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
set(ALL_LIBRARIES ${ALL_LIBRARIES} strmiids)
|
||||
endif()
|
||||
|
||||
if (NOT GIT_DESCRIBE)
|
||||
execute_process(
|
||||
COMMAND git describe --tags
|
||||
|
|
Loading…
Reference in New Issue
Block a user