Skip to content

Commit

Permalink
Fix test for IMPORTED_SONAME
Browse files Browse the repository at this point in the history
b55cf16 was not having the expected
effect
  • Loading branch information
Luthaf committed Aug 29, 2022
1 parent 6bba669 commit 672460f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if(${chemfiles_FOUND})
# external library.
get_target_property(CHEMFILES_FULL_LOCATION chemfiles LOCATION)
get_target_property(CHEMFILES_SONAME chemfiles IMPORTED_SONAME)
if(${CHEMFILES_SONAME})
if(NOT "${CHEMFILES_SONAME}" STREQUAL "CHEMFILES_SONAME-NOTFOUND")
get_filename_component(CHEMFILES_SOLINK ${CHEMFILES_SONAME} NAME)
get_filename_component(CHEMFILES_DIR ${CHEMFILES_FULL_LOCATION} DIRECTORY)
set(CHEMFILES_LOCATION ${CHEMFILES_DIR}/${CHEMFILES_SOLINK})
Expand All @@ -48,7 +48,7 @@ if(${chemfiles_FOUND})
message(FATAL_ERROR "Missing symbolic link to ${CHEMFILES_FULL_LOCATION}, expected it at ${CHEMFILES_LOCATION}")
endif()

file(WRITE ${PROJECT_SOURCE_DIR}/chemfiles/external.py
file(WRITE ${PROJECT_SOURCE_DIR}/src/chemfiles/external.py
"EXTERNAL_CHEMFILES = \"${CHEMFILES_LOCATION}\"\n"
)

Expand Down

0 comments on commit 672460f

Please sign in to comment.