[Trilinos-Users] CMAKE issues in PyTrilinos

Bunde, Kermit A bundeka at id.doe.gov
Tue Jan 21 07:52:37 MST 2014


I believe that there is an error in the code fragment from the CMakeLists.txt file in "trilinos-11.4.3-Source\packages\PyTrilinos\src " directory below:

#
# On Mac OS X Gnu compilers, add dynamic lookup for undefined symbols
# to the pytrilinos library and PyTrilinos extension modules
SET(EXTRA_LINK_ARGS "${CMAKE_SHARED_LINKER_FLAGS}")
IF(APPLE)
  IF((CMAKE_CXX_COMPILER_ID MATCHES) "GNU" OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
   SET(EXTRA_LINK_ARGS "${EXTRA_LINK_ARGS} -undefined dynamic_lookup")
  ENDIF()
ENDIF(APPLE)


This line:
IF((CMAKE_CXX_COMPILER_ID MATCHES) "GNU" OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))

Should be:
IF((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))

Also I am getting a parse error of this form from one of the lines below from the same file:
Parse error. Function missing ending ")".
Instead found unterminated string with text ")
".
#
# Add the additional "make clean" files
GET_DIRECTORY_PROPERTY(clean_files ADDITIONAL_MAKE_CLEAN_FILES)
LIST(APPEND            clean_files ${ADDITIONAL_CLEAN_FILES})
LIST(REMOVE_DUPLICATES clean_files)
LIST(REMOVE_ITEM       clean_files "")
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${clean_files}")


Thanks for your help.
Kermit Bunde
Enforcement Coordinator
Criticality Safety SME
Nuclear Safety SME
DOE-ID Aviation Safety Officer
208-526-5188 (office)
208-526-1926 (fax)
208-680-6843 (cell)
"Accept the challenges so that you may feel the exhilaration of victory."
Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity."
--George S. Patton Jr.,
American Army general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20140121/36ae01cf/attachment.html 


More information about the Trilinos-Users mailing list