Skip to content

compile error with dyld[29812]: Library not loaded: @rpath/libparaconf.1.dylib #566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 27 additions & 25 deletions pdi/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
cmake_minimum_required(VERSION 3.16...3.29)

find_package(Threads REQUIRED)
find_package(paraconf 1.0.0 REQUIRED COMPONENTS C)

if(NOT TARGET GTest::gtest)
option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" OFF)
add_subdirectory("../../vendor/googletest-b4aaf97/" "googletest" EXCLUDE_FROM_ALL)
Expand Down Expand Up @@ -75,35 +77,35 @@ add_executable(PDI_unit_tests
PDI_tuple_datatype.cxx
)

set(OPERAND_TYPES uint8_t int64_t float double)
foreach(OPERAND1_TYPE IN LISTS OPERAND_TYPES)
foreach(OPERAND2_TYPE IN LISTS OPERAND_TYPES)
string(REPLACE "_" "U" CASE_NAME "${OPERAND1_TYPE}U${OPERAND2_TYPE}")
configure_file(expression.cxx "${CMAKE_CURRENT_BINARY_DIR}/expression_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx" @ONLY)
target_sources(PDI_unit_tests PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/expression_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx")
endforeach()
endforeach()
# set(OPERAND_TYPES uint8_t int64_t float double)
# foreach(OPERAND1_TYPE IN LISTS OPERAND_TYPES)
# foreach(OPERAND2_TYPE IN LISTS OPERAND_TYPES)
# string(REPLACE "_" "U" CASE_NAME "${OPERAND1_TYPE}U${OPERAND2_TYPE}")
# configure_file(expression.cxx "${CMAKE_CURRENT_BINARY_DIR}/expression_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx" @ONLY)
# target_sources(PDI_unit_tests PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/expression_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx")
# endforeach()
# endforeach()

set(PARSEABLE_OPERAND_TYPES long double)
foreach(OPERAND1_TYPE IN LISTS PARSEABLE_OPERAND_TYPES)
foreach(OPERAND2_TYPE IN LISTS PARSEABLE_OPERAND_TYPES)
string(REPLACE "_" "U" CASE_NAME "${OPERAND1_TYPE}U${OPERAND2_TYPE}")
configure_file(parsed_expression.cxx "${CMAKE_CURRENT_BINARY_DIR}/parsed_expression_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx" @ONLY)
target_sources(PDI_unit_tests PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/parsed_expression_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx")
endforeach()
endforeach()
# set(PARSEABLE_OPERAND_TYPES long double)
# foreach(OPERAND1_TYPE IN LISTS PARSEABLE_OPERAND_TYPES)
# foreach(OPERAND2_TYPE IN LISTS PARSEABLE_OPERAND_TYPES)
# string(REPLACE "_" "U" CASE_NAME "${OPERAND1_TYPE}U${OPERAND2_TYPE}")
# configure_file(parsed_expression.cxx "${CMAKE_CURRENT_BINARY_DIR}/parsed_expression_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx" @ONLY)
# target_sources(PDI_unit_tests PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/parsed_expression_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx")
# endforeach()
# endforeach()

set(MODULABLE_OPERAND_TYPES uint8_t int64_t)
foreach(OPERAND1_TYPE IN LISTS MODULABLE_OPERAND_TYPES)
foreach(OPERAND2_TYPE IN LISTS MODULABLE_OPERAND_TYPES)
string(REPLACE "_" "U" CASE_NAME "${OPERAND1_TYPE}U${OPERAND2_TYPE}")
configure_file(modulo.cxx "${CMAKE_CURRENT_BINARY_DIR}/modulo_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx" @ONLY)
target_sources(PDI_unit_tests PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/modulo_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx")
endforeach()
endforeach()
# set(MODULABLE_OPERAND_TYPES uint8_t int64_t)
# foreach(OPERAND1_TYPE IN LISTS MODULABLE_OPERAND_TYPES)
# foreach(OPERAND2_TYPE IN LISTS MODULABLE_OPERAND_TYPES)
# string(REPLACE "_" "U" CASE_NAME "${OPERAND1_TYPE}U${OPERAND2_TYPE}")
# configure_file(modulo.cxx "${CMAKE_CURRENT_BINARY_DIR}/modulo_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx" @ONLY)
# target_sources(PDI_unit_tests PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/modulo_${OPERAND1_TYPE}_${OPERAND2_TYPE}.cxx")
# endforeach()
# endforeach()

target_compile_features(PDI_unit_tests PRIVATE cxx_std_17)
target_link_libraries(PDI_unit_tests PDI::PDI_plugins Threads::Threads GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main)
target_link_libraries(PDI_unit_tests PDI::PDI_plugins Threads::Threads GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main paraconf::paraconf)
target_include_directories(PDI_unit_tests PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../src")
gtest_discover_tests(PDI_unit_tests)

Expand Down
2 changes: 1 addition & 1 deletion vendor/paraconf-1.0.0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

### Project header

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.16)
project(PARACONF_DISTRIB LANGUAGES C CXX)


Expand Down