Skip to content

Commit

Permalink
Do not create symlink for MSVC builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelkryukov committed Apr 11, 2020
1 parent ac8abe7 commit 20197fc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions simulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ if (COMPILER_SUPPORTS_MARCH_NATIVE)
endif()

if (ENABLE_COVERAGE)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DNDEBUG") # exclude 'assert' macro
add_definitions(-DNDEBUG) # exclude 'assert' macro
if (NOT MSVC)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage -g -fno-inline")
# add_link_options(--coverage)
Expand Down Expand Up @@ -218,8 +218,10 @@ add_executable(unit-tests EXCLUDE_FROM_ALL export/catch/catch.cpp ${TESTS_CPPS}
add_executable(cachesim export/cache/main.cpp $<TARGET_OBJECTS:mipt-mips-src>)

# Symlink for new name
add_custom_target(mipt-v ALL COMMAND ${CMAKE_COMMAND} -E create_symlink mipt-mips mipt-v)
add_dependencies(mipt-v mipt-mips)
if (NOT MSVC)
add_custom_target(mipt-v ALL COMMAND ${CMAKE_COMMAND} -E create_symlink mipt-mips mipt-v)
add_dependencies(mipt-v mipt-mips)
endif()

target_link_libraries(unit-tests mipt-mips-cen64-intf)

Expand Down

0 comments on commit 20197fc

Please sign in to comment.