Skip to content

Commit

Permalink
bug in CMakeLists.txt, when using globally installed cgns
Browse files Browse the repository at this point in the history
  • Loading branch information
iagsonn committed Oct 18, 2016
1 parent 12d4f28 commit 2f5efdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,12 @@ IF (HOPR_BUILD_CGNS)
INCLUDE_DIRECTORIES(${HOPR_CGNSDIR}/build/include)
ELSE()
FIND_PACKAGE(CGNS)
IF (NOT CGNS_FOUND)
IF (CGNS_FOUND)
MESSAGE(STATUS "CGNS include dir: " ${CGNS_INCLUDE_DIR})
LIST(APPEND linkedlibs ${CGNS_LIBRARIES})
INCLUDE_DIRECTORIES (${CGNS_INCLUDE_DIR})
ELSE()
MESSAGE(ERROR "CGNS not found")
ENDIF()
ENDIF()

Expand Down

0 comments on commit 2f5efdc

Please sign in to comment.