Skip to content

Commit

Permalink
Fixup CMake scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilsnd committed Oct 27, 2022
1 parent 4ee7b39 commit 9ff0110
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ set(Boost_USE_STATIC_RUNTIME ON CACHE BOOL "")
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" CACHE STRING "")
set(POLYHOOK_BUILD_STATIC_RUNTIME ON CACHE BOOL "")
set(POLYHOOK_BUILD_DLL ON CACHE BOOL "")
set(POLYHOOK_DISASM_CAPSTONE ON CACHE BOOL "")
set(POLYHOOK_DISASM_ZYDIS ON CACHE BOOL "")
set(POLYHOOK_FEATURE_EXCEPTION OFF CACHE BOOL "")
set(POLYHOOK_FEATURE_DETOURS ON CACHE BOOL "")
Expand Down Expand Up @@ -70,7 +69,6 @@ add_library(
target_include_directories(${PROJECT_NAME} PRIVATE "SmoothCam/include")
target_include_directories(${PROJECT_NAME} PRIVATE "Deps/glm")
target_include_directories(${PROJECT_NAME} PRIVATE "Deps/PolyHook_2_0")
target_include_directories(${PROJECT_NAME} PRIVATE "Deps/PolyHook_2_0/capstone/include")
target_include_directories(${PROJECT_NAME} PRIVATE "Deps/PolyHook_2_0/zydis/include")
target_include_directories(${PROJECT_NAME} PRIVATE "Deps/PolyHook_2_0/zydis/dependencies/zycore/include")
target_include_directories(${PROJECT_NAME} PRIVATE "Deps/eternal/include")
Expand All @@ -89,7 +87,8 @@ target_link_libraries(
EASTL
PolyHook_2
xbyak::xbyak
"${PROJECT_SOURCE_DIR}/Deps/Detours/lib.X64/detours.lib"
"$<$<CONFIG:RELEASE>:${PROJECT_SOURCE_DIR}/Deps/Detours/lib.X64/detours.lib>"
"$<$<CONFIG:DEBUG>:${PROJECT_SOURCE_DIR}/Deps/Detours/lib.X64Debug/detours.lib>"
)

target_precompile_headers(
Expand Down Expand Up @@ -138,6 +137,6 @@ if (MSVC)
PRIVATE
/WX
"$<$<CONFIG:DEBUG>:/INCREMENTAL;/OPT:NOREF;/OPT:NOICF>"
"$<$<CONFIG:RELEASE>:/LTCG;/INCREMENTAL:NO;/OPT:REF;/OPT:ICF;/DEBUG:FULL>"
"$<$<CONFIG:RELEASE>:/LTCG;/INCREMENTAL:NO;/OPT:REF;/OPT:ICF;/DEBUG:FULL;/IGNORE:4099>"
)
endif ()
2 changes: 1 addition & 1 deletion SmoothCam/include/code_analysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ __pragma(warning( pop ))
// 5220 a non-static data memeber with a volatile qualified type no longer implies
#define SILENCE_EXTERNAL
__pragma(warning( push )) \
__pragma(warning( disable : 4324 4061 4200 4265 4266 4365 4371 4388 4514 4582 4583 4619 4623 4625 4626 4668 4710 4820 5026 5027 5031 5032 5039 5105 5204 5220 ))
__pragma(warning( disable : 4201 4324 4061 4200 4265 4266 4365 4371 4388 4514 4582 4583 4619 4623 4625 4626 4668 4710 4820 5026 5027 5031 5032 5039 5105 5204 5220 ))

#define RESTORE_EXTERNAL \
__pragma(warning( pop ))

0 comments on commit 9ff0110

Please sign in to comment.