Skip to content
Snippets Groups Projects
Commit b1b85c8a authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

CMake: restore installation of FFTW3 and TIFF DLLs

Bug came from my misunderstanding CMake syntax
parent 3d1c0ab3
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
# CMakeLists.txt file for building libBornAgainCore library # CMakeLists.txt file for building libBornAgainCore library
############################################################################ ############################################################################
message(STATUS "Configuring BornAgain GUI")
set(library_name BornAgainCore) set(library_name BornAgainCore)
if(BORNAGAIN_TIDY) if(BORNAGAIN_TIDY)
...@@ -235,13 +237,16 @@ if(WIN32) ...@@ -235,13 +237,16 @@ if(WIN32)
install(FILES ${UTF_PATH}/${UTF_BASE_NAME}.dll install(FILES ${UTF_PATH}/${UTF_BASE_NAME}.dll
DESTINATION ${destination_lib} COMPONENT Libraries) DESTINATION ${destination_lib} COMPONENT Libraries)
foreach(LIB IN LISTS ${FFTW3_LIBRARIES} ${TIFF_LIBRARIES}) set(DLL_MSG "")
foreach(LIB IN LISTS FFTW3_LIBRARIES TIFF_LIBRARIES)
string(REPLACE ".lib" ".dll" DLL "${LIB}") string(REPLACE ".lib" ".dll" DLL "${LIB}")
if (NOT EXISTS ${DLL}) if (NOT EXISTS ${DLL})
message(FATAL_ERROR "Dynamic load library ${DLL} (derived from ${LIB}) does not exist") message(FATAL_ERROR "Dynamic load library ${DLL} (derived from ${LIB}) does not exist")
endif() endif()
install(FILES ${DLL} DESTINATION ${destination_lib} COMPONENT Libraries) install(FILES ${DLL} DESTINATION ${destination_lib} COMPONENT Libraries)
string(APPEND DLL_MSG " ${DLL}")
endforeach() endforeach()
message(STATUS "Other dlls: ${DLL_MSG}")
else() else()
# Install thisbornagain.sh. # Install thisbornagain.sh.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment