Skip to content

Commit

Permalink
Fix test and example target name on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAce committed Jun 3, 2021
1 parent f2c2aeb commit 7dcb566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ foreach (ex ${EXAMPLES})
add_executable(h5pp-${example_nwe} ${example_src})
target_link_libraries(h5pp-${example_nwe} PRIVATE h5pp)
if (MSVC)
set_target_properties(${example_nwe} PROPERTIES LINK_FLAGS "/ignore:4099")
set_target_properties(h5pp-${example_nwe} PROPERTIES LINK_FLAGS "/ignore:4099")
endif()
add_dependencies(h5pp-example-all h5pp-${example_nwe})
list(APPEND example_tgt_list h5pp-${example_nwe})
Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ foreach (test ${TESTS})
target_link_libraries(h5pp-${test_nwe} PRIVATE h5pp)
add_test(NAME h5pp-${test_nwe} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND h5pp-${test_nwe})
if (MSVC)
set_target_properties(${test_nwe} PROPERTIES LINK_FLAGS "/ignore:4099")
set_target_properties(h5pp-${test_nwe} PROPERTIES LINK_FLAGS "/ignore:4099")
endif()
add_dependencies(h5pp-test-all h5pp-${test_nwe})
list(APPEND test_tgt_list h5pp-${test_nwe})
Expand Down

0 comments on commit 7dcb566

Please sign in to comment.