From d3b2c23fc846ffcf55a1abe281da6a90e802342b Mon Sep 17 00:00:00 2001 From: rturrado <68099809+rturrado@users.noreply.github.com> Date: Sat, 16 Dec 2023 01:25:32 +0100 Subject: [PATCH] src/CMakeLists.txt: - Removed double inclusion of 'find_package(fmt)'. - Moved 'include(FetchContent)' to the beginning of the Packages section. - Updated a comment. --- src/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f0dfbb98..8b56710b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -28,6 +28,8 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) # Packages #------------------------------------------------------------------------------- +include(FetchContent) + find_package(antlr4-runtime) find_package(BISON 3.0) find_package(FLEX 2.6.4) @@ -36,11 +38,8 @@ if(WIN32) else() set(flex_win_compat) endif() -find_package(fmt 10.1.1) find_package(Python3 REQUIRED) -include(FetchContent) - # fmt set(fmt_VERSION_REQUIRED 10.1.1) find_package(fmt ${fmt_VERSION_REQUIRED}) @@ -321,8 +320,7 @@ else() message(SEND_ERROR "Unknown compiler!") endif() -# Main cQASM library in shared or static form as managed by cmake's -# internal BUILD_SHARED_LIBS variable. +# Main cQASM library in shared or static form as managed by CMake's internal BUILD_SHARED_LIBS variable. add_library(cqasm $ )