Closed kannon92 closed 8 years ago
I assume you're on Mac? Apply this patch to CheMPS2/CMakeLists.txt
if (NOT STATIC_ONLY)
+ if (APPLE)
+ target_link_libraries (chemps2-shared PRIVATE "-undefined dynamic_lookup")
+ endif()
target_compile_definitions (chemps2-shared INTERFACE USING_${PROJECT_NAME})
Your assumption is correct and this change worked. Thank you @loriab. I will see if I can link with my code.
Glad it worked, Kevin. Follow the model of https://github.com/jturney/psi4/commits/CMakeRewrite-KillTheBoost if it gives you any trouble.
Thank you, Lori. Everything seems to work perfectly well now. I am able to use ChemPS2 in my codes, so I will close this issue.
I am trying to build the newest version of CheMPS2. I found that I can not compile a shared version of this library. I get errors that it can not find HDF5 and mkl. I get these errors only when I link with a shared library. I am able to build and successfully test a static library.
I get errors like this:
I also get this warning during my cmake configure: