Skip to content

Commit

Permalink
src/CMakeLists.txt:
Browse files Browse the repository at this point in the history
- Removed double inclusion of 'find_package(fmt)'.
- Moved 'include(FetchContent)' to the beginning of the Packages section.
- Updated a comment.
  • Loading branch information
rturrado committed Dec 16, 2023
1 parent cfd69bf commit d3b2c23
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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})
Expand Down Expand Up @@ -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
$<TARGET_OBJECTS:cqasm-lib-obj>
)
Expand Down

0 comments on commit d3b2c23

Please sign in to comment.