Skip to content

Commit

Permalink
maybe fixed toml++ dep
Browse files Browse the repository at this point in the history
  • Loading branch information
DeaSTL committed Oct 27, 2023
1 parent ea02206 commit 4a76082
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ FetchContent_Declare(
GIT_TAG "v3.4.0"
)



FetchContent_MakeAvailable(nlohmann_json)
FetchContent_MakeAvailable(cxxopts)
FetchContent_MakeAvailable(tomlplusplus)




file(GLOB_RECURSE SOURCES RELATIVE ${CMAKE_SOURCE_DIR}
"src/**.cpp"
"src/**.c"
Expand All @@ -40,7 +45,6 @@ set(HEADER_DIR ${CMAKE_SOURCE_DIR}/include)

message("Sources: ${SOURCES}")

include_directories(include)

if(NOT DEFINED RELEASE)
set(RELEASE 0)
Expand Down Expand Up @@ -87,7 +91,7 @@ endif()

target_link_libraries(cmaker cxxopts)
target_link_libraries(cmaker nlohmann_json)
target_link_libraries(cmaker tomlplusplus)
target_link_libraries(cmaker tomlplusplus::tomlplusplus)
set(SOURCE_DIR src)
set(BUILD_DIR build)
set_target_properties(cmaker PROPERTIES RUNTIME_OUTPUT_DIRECTORY build)
Expand Down
2 changes: 1 addition & 1 deletion src/Command/CommandInit.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "Command.hpp"
#include "toml++/toml.h"
#include <toml++/toml.hpp>
#include <cxxopts.hpp>
#include <algorithm>
#include <ranges>
Expand Down

0 comments on commit 4a76082

Please sign in to comment.