From 2a8d1d51693a3ec63dfd8b863d7720a6b87bb22f Mon Sep 17 00:00:00 2001 From: Benedek Kupper Date: Thu, 16 Nov 2023 23:05:03 +0100 Subject: [PATCH] build a library for verification instead --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b0b8f28..cbc9b57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})