Commit 5828d451 authored by Mark Olesen's avatar Mark Olesen

BUG: incorrect test for CATALYST_HAS_WORKING_DIRECTORY

- LINK_LIBRARIES are required for proper try_compile

STYLE: report output directory
parent 4c40c9c8
...@@ -46,10 +46,13 @@ file(WRITE ${test_file} ...@@ -46,10 +46,13 @@ file(WRITE ${test_file}
) )
try_compile(CATALYST_HAS_WORKING_DIRECTORY try_compile(CATALYST_HAS_WORKING_DIRECTORY
${CMAKE_CURRENT_BINARY_DIR} ${test_file} ${CMAKE_CURRENT_BINARY_DIR} ${test_file}
LINK_LIBRARIES vtkPVPythonCatalyst
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${PARAVIEW_INCLUDE_DIRS}" CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${PARAVIEW_INCLUDE_DIRS}"
) )
if (CATALYST_HAS_WORKING_DIRECTORY) if (CATALYST_HAS_WORKING_DIRECTORY)
add_definitions(-DUSE_CATALYST_WORKING_DIRECTORY) add_definitions(-DUSE_CATALYST_WORKING_DIRECTORY)
else()
message(WARNING "==== CAUTION: ParaView Catalyst without chdir capability ====")
endif() endif()
......
...@@ -224,7 +224,8 @@ bool Foam::functionObjects::catalystFunctionObject::read(const dictionary& dict) ...@@ -224,7 +224,8 @@ bool Foam::functionObjects::catalystFunctionObject::read(const dictionary& dict)
else else
{ {
Info<< type() << " " << name() << ":" << nl Info<< type() << " " << name() << ":" << nl
<< " scripts " << scripts_ << nl << " output: " << outputDir_ << nl
<< " scripts: " << scripts_ << nl
<< " inputs:" << nl << " inputs:" << nl
<< "(" << nl; << "(" << nl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment