Skip to content

Commit

Permalink
lib: use find_library() to find SeExpr
Browse files Browse the repository at this point in the history
Signed-off-by: David Aguilar <[email protected]>
  • Loading branch information
davvid committed Jul 17, 2018
1 parent 716e2fb commit 4a213b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ if (${PARTIO_SE_ENABLED})
SET(SEEXPR_INCLUDE_PATH ${SEEXPR_BASE}/include)
SET(SEEXPR_LIBDIR ${CMAKE_INSTALL_LIBDIR})
SET(SEEXPR_LINK_PATH ${SEEXPR_BASE}/${SEEXPR_LIBDIR})
SET(SEEXPR_LIBS "SeExpr")
find_library(SEEXPR_LIB SeExpr ${SEEXPR_LINK_PATH} REQUIRED)
endif ()


Expand Down
2 changes: 1 addition & 1 deletion src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if (SEEXPR_BASE)
PUBLIC
$<INSTALL_INTERFACE:${SEEXPR_INCLUDE_PATH}>
$<BUILD_INTERFACE:${SEEXPR_INCLUDE_DIR}>)
target_link_libraries(partioSe PUBLIC partio ${SEEXPR_LIBS})
target_link_libraries(partioSe PUBLIC partio ${SEEXPR_LIB})
install(TARGETS partioSe DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif ()
endif (SEEXPR_BASE)
Expand Down

0 comments on commit 4a213b8

Please sign in to comment.