Skip to content

Commit

Permalink
build a library for verification instead
Browse files Browse the repository at this point in the history
  • Loading branch information
benedekkupper committed Nov 16, 2023
1 parent 5739498 commit 2a8d1d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,5 @@ foreach(HEADER_FILE ${HEADER_FILES})
"#include \"${FILE_RELATIVE_PATH}\"\n"
)
endforeach()
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/compilation_test.cpp"
"\nint main() { return 0; }\n"
)
add_executable(${PROJECT_NAME}-verify ${CMAKE_CURRENT_BINARY_DIR}/compilation_test.cpp)
add_library(${PROJECT_NAME}-verify ${CMAKE_CURRENT_BINARY_DIR}/compilation_test.cpp)
target_link_libraries(${PROJECT_NAME}-verify ${PROJECT_NAME})

0 comments on commit 2a8d1d5

Please sign in to comment.