Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Project/CMake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,23 @@ set(BIN_INSTALL_DIR "${CMAKE_INSTALL_FULL_BINDIR}" CACHE STRING "Directory where
set(LIB_INSTALL_DIR "${CMAKE_INSTALL_FULL_LIBDIR}" CACHE STRING "Directory where library will install")
set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_FULL_INCLUDEDIR}" CACHE PATH "The directory the headers are installed in")

if(MSVC)
add_compile_options(/GS /W3 /guard:cf /sdl)
add_link_options(/guard:cf)
if(CMAKE_CXX_COMPILER_ARCHITECTURE_ID STREQUAL ARM64)
add_compile_options(/guard:ehcont /guard:signret)
add_link_options(/guard:ehcont /guard:delayloadsignret)
endif()
if(CMAKE_CXX_COMPILER_ARCHITECTURE_ID STREQUAL x64)
add_compile_options(/guard:ehcont)
add_link_options(/guard:ehcont /CETCOMPAT)
endif()
if(CMAKE_CXX_COMPILER_ARCHITECTURE_ID STREQUAL X86)
add_compile_options()
add_link_options(/CETCOMPAT)
endif()
endif()

if(VCPKG_TARGET_TRIPLET)
set(ZenLib_CONFIG_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/zenlib")
elseif(MSVC)
Expand Down