From 0a784cf283779bb0beaf0ab428fafd313ac811e5 Mon Sep 17 00:00:00 2001 From: Dimitri Rusin Date: Wed, 8 Nov 2023 13:58:02 +0100 Subject: [PATCH] ignore the file with official CEC22 code --- tests/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 02e019648..62e1c2982 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -32,6 +32,10 @@ endfunction() # Add all tests in single executable file(GLOB SOURCES cpp/*/*.cpp) +# Remove set_cec_problems.cpp as we don't want to compile it +set(CEC_PROBLEMS_CPP "${CMAKE_CURRENT_SOURCE_DIR}/cpp/problem/set_cec_problems.cpp") +list(REMOVE_ITEM SOURCES "${CEC_PROBLEMS_CPP}") + # Remove MKLandscape if it is not enablecd if(NOT ENABLE_MKLANDSCAPE_PROBLEMS) get_filename_component(MKLANDSCAPE_CPP ${CMAKE_CURRENT_SOURCE_DIR}/cpp/problem/test_mklandscape_problem.cpp ABSOLUTE)