Skip to content

Commit

Permalink
Fixed order of testing
Browse files Browse the repository at this point in the history
Include files were tested before indirect include files got generated.Z
  • Loading branch information
vanrein committed Jan 18, 2018
1 parent a6810a8 commit f723cf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ if (NOT NO_INSTALL_PYTHON)
add_subdirectory (python)
endif ()

add_custom_target (asn2quickder-done)

if (SPEC_RFC)
add_subdirectory (rfc)
endif ()
Expand Down
3 changes: 2 additions & 1 deletion cmake/MacroASN1Module.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ macro(add_asn1_module _modulename _groupname)
add_executable(${_modulename}-test-h ${CMAKE_CURRENT_BINARY_DIR}/${_modulename}.c)
target_include_directories(${_modulename}-test-h PUBLIC ${CMAKE_SOURCE_DIR}/include ${CMAKE_CURRENT_BINARY_DIR})

add_dependencies(${_modulename}-test-h ${_modulename}_asn1_h)
add_dependencies(${_modulename}-test-h asn2quickder-done)
add_dependencies(asn2quickder-done ${_modulename}_asn1_h)

add_test(${_modulename}-test-h ${_modulename}-test-h)
add_test(${_modulename}-test-py python ${_modulename}-test.py)
Expand Down

0 comments on commit f723cf8

Please sign in to comment.