Merge pull request #2450 from jpark37/opt-ref
CMake: Enable /OPT:REF for Windows
This commit is contained in:
commit
a0f700e737
@ -162,6 +162,10 @@ if(MSVC)
|
|||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
|
||||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /SAFESEH:NO")
|
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /SAFESEH:NO")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /OPT:REF")
|
||||||
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /OPT:REF")
|
||||||
|
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /OPT:REF")
|
||||||
else()
|
else()
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
set(CMAKE_WIDL "widl" CACHE STRING "wine IDL header file generation program")
|
set(CMAKE_WIDL "widl" CACHE STRING "wine IDL header file generation program")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user