[Paraview] bug in CMakeList.txt of MaterialLibrary? - solution
Jens
jens-devel at gmx.de
Wed Jul 25 05:39:16 EDT 2007
solution: "C++" is not allowed in the path
Jens schrieb:
> Hi,
>
> CMakeList.txt of VTKPythonWrapping had the same bug. I changed it to the
> following and it works fine now.
>
> starting at line 675 in
> /data/workspaces/C++/ParaView3/ParaView3_July07/Utilities/VTKPythonWrapping/CMakeList.txt
>
> STRING(COMPARE EQUAL "${VTK_BINARY_DIR}" "${VTK_SOURCE_DIR}" INSOURCE)
> IF(INSOURCE)
> #MESSAGE("In source build -- no need to copy Python files.")
> ELSE(INSOURCE)
> FOREACH(file ${PV_PYTHON_FILES})
> SET(src "${PV_PYTHON_MODULE_SOURCE_DIR}/${file}.py")
> SET(tgt "${PV_PYTHON_MODULE_BINARY_DIR}/${file}.py")
> ADD_CUSTOM_COMMAND(DEPENDS ${src}
> COMMAND ${CMAKE_COMMAND}
> ARGS -E copy ${src} ${tgt}
> OUTPUT ${tgt}
> COMMENT "source copy")
> SET(PV_PYTHON_OUTPUT_FILES ${PV_PYTHON_OUTPUT_FILES} ${tgt})
> ENDFOREACH(file)
> ENDIF (INSOURCE)
>
> Greetings
> Jens
>
> Jens schrieb:
>> Hi,
>>
>> Line 85 in CMakeList.txt of MaterialLibrary (NOT "${VTK_BINARY_DIR}"
>> MATCHES "^${VTK_SOURCE_DIR}$") seems not to be correct.
>>
>> I try to compile paraview 3 (july snapshot) from source but cmake(2.4.7)
>> gives me the following error.
>>
>> RegularExpression::compile(): Nested *?+.
>> RegularExpression::compile(): Error in compile.
>> CMake Error: Error in cmake code at
>> /data/workspaces/C++/ParaView3/ParaView3_July07/VTK/Utilities/MaterialLibrary/CMakeLists.txt:85:
>> IF had incorrect arguments: NOT "${VTK_BINARY_DIR}" MATCHES
>> "^${VTK_SOURCE_DIR}$" (Regular expression
>> "^/data/workspaces/C++/ParaView3/ParaView3_July07/VTK$" cannot compile).
>> Current CMake stack:
>> [1]
>> /data/workspaces/C++/ParaView3/ParaView3_July07/VTK/Utilities/MaterialLibrary/CMakeLists.txt
>> CMake Error: Error in cmake code at
>> /data/workspaces/C++/ParaView3/ParaView3_July07/VTK/Utilities/MaterialLibrary/CMakeLists.txt:91:
>> ENDIF An ENDIF command was found outside of a proper IF ENDIF structure.
>> Or its arguments did not match the opening IF command.
>> Current CMake stack:
>> [1]
>> /data/workspaces/C++/ParaView3/ParaView3_July07/VTK/Utilities/MaterialLibrary/CMakeLists.txt
>>
>> Greetings
>> Jens
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list