Skip to content

Commit

Permalink
fix the incremental no
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed May 26, 2024
1 parent 3978560 commit 61443a7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ enable_testing()
add_executable(${PROJECT_NAME} Assembler86.cpp Assembler64.cpp Hook.cpp)
target_link_libraries(${PROJECT_NAME} PUBLIC GTest::gtest_main TulipHook)

if(WIN32 AND CMAKE_SIZEOF_VOID_P EQUAL 4)
if(WIN32)
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "/INCREMENTAL:NO")

# add_executable(WinTest misc/WinTest.cpp)
# target_link_libraries(WinTest PUBLIC TulipHook)
# set_target_properties(WinTest PROPERTIES LINK_FLAGS "/INCREMENTAL:NO")

add_library(TestMod SHARED misc/Mod.cpp)
target_link_libraries(TestMod PUBLIC TulipHook)
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
add_library(TestMod SHARED misc/Mod.cpp)
target_link_libraries(TestMod PUBLIC TulipHook)
endif()
endif()

include(GoogleTest)
Expand Down

0 comments on commit 61443a7

Please sign in to comment.