[Trilinos-Users] Building against Trilinos

Peterson, Kara J. kjpeter at sandia.gov
Fri May 13 08:49:27 MDT 2011


Hi Ted,

Try changing your do-cmake file to the following:

cmake \
 -D Trilinos_PREFIX:PATH=/home/tedkord/TRILINOS/BUILD \
 -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON \
 ..

This should enable cmake to locate your Trilinos build.


Regards,

Kara



From: Ted Kord <teddy.kord at gmail.com<mailto:teddy.kord at gmail.com>>
Date: Fri, 13 May 2011 14:45:44 +0100
To: <trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>>
Subject: [Trilinos-Users] Building against Trilinos

I'm trying to test this out but with no success so far. I've gone into the:

trilinos-10.6.4-Source/demos/buildAgainstTrilinos/build   directory.

I've modified the do-cmake script as follows:

<do-cmake>
rm CMakeCache.txt

cmake \
 -D MYAPP_TRILINOS_DIR:FILEPATH=/home/tedkord/TRILINOS/BUILD \
 -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON \
 ..
</do-cmake>

When I run the do-cmake script, I get:

====
CMake Warning at CMakeLists.txt:12 (FIND_PACKAGE):
  Could not find a configuration file for package Trilinos.

  Set Trilinos_DIR to the directory containing a CMake configuration file for
  Trilinos.  The file will have one of the following names:

    TrilinosConfig.cmake
    trilinos-config.cmake



CMake Error at CMakeLists.txt:15 (MESSAGE):
  Could not find Trilinos!


-- Configuring incomplete, errors occurred!
====

TrilinosConfig.cmake is in "home/tedkord/TRILINOS" but Trilinos is installed in "home/tedkord/TRILINOS/BUILD". In any case, using both directories gives the same error as above.

--
Best regards,

Theodore


_______________________________________________ Trilinos-Users mailing list Trilinos-Users at software.sandia.gov<mailto:Trilinos-Users at software.sandia.gov> http://software.sandia.gov/mailman/listinfo/trilinos-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110513/b0603363/attachment-0001.html 


More information about the Trilinos-Users mailing list