Skip to content

Commit

Permalink
fix build script and parse-args linking
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Curti committed Dec 21, 2023
1 parent 34670ac commit 9ef8045
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ if (FORCE_USE_SUBMODULES)
else ()
message (STATUS "Looking for ParseArgs library")
find_package (ParseArgs HINTS ParseArgs_DIR)
message (STATUS "----------------------------${ParseArgs_FOUND}")
if (ParseArgs_FOUND)
include_directories(${ParseArgs_INCLUDE_DIR})
set (parseargslib ParseArgs::parseargs)
Expand Down Expand Up @@ -264,7 +265,7 @@ install(TARGETS ${dnetprolib} EXPORT DNetPROTargets
)

add_executable(DNetPRO_couples "${CMAKE_CURRENT_LIST_DIR}/example/DNetPRO_couples.cpp")
target_link_libraries(DNetPRO_couples ${linked_libs} ${parseargslib} ${dnetprolib})
target_link_libraries(DNetPRO_couples ${linked_libs} ${parseargslib} ${dnetprolib} parseargs)
if (FORCE_USE_SUBMODULES)
add_dependencies(DNetPRO_couples parseargs)
endif ()
Expand Down
2 changes: 1 addition & 1 deletion build.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ number_of_build_workers=$(grep -c ^processor /proc/cpuinfo)

other_cmake_flags="${@:2}"

elif [ "$build_type" == "Release" ] || [ "$build_type" == "release" ]; then
if [ "$build_type" == "Release" ] || [ "$build_type" == "release" ]; then
echo "${green}Building Release project${reset}"
build_type=Release
#rm -rf build_release
Expand Down

0 comments on commit 9ef8045

Please sign in to comment.