Opened 12 years ago
Closed 12 years ago
#10921 closed defect (invalid)
Could not find a package configuration file provided by "COLLADA_DOM" (sgal)
Reported by: | hgmarques | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
While compiling sgal I get:
CMake Error at CMakeLists.txt:46 (FIND_PACKAGE):
By not providing "FindCOLLADA_DOM.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "COLLADA_DOM", but CMake did not find one.
Could not find a package configuration file provided by "COLLADA_DOM" with any of the following names:
COLLADA_DOMConfig.cmake collada_dom-config.cmake
Add the installation prefix of "COLLADA_DOM" to CMAKE_PREFIX_PATH or set "COLLADA_DOM_DIR" to a directory containing one of the above files. If "COLLADA_DOM" provides a separate development package or SDK, be sure it has been installed.
The solution for it is either changing the name of the file FindColladaDom.cmake to FindCOLLADA_DOM.cmake in the modules folder or
change the line FIND_PACKAGE( COLLADA_DOM COMPONENTS 1.4 REQUIRED ) to FIND_PACKAGE( ColladaDom COMPONENTS 1.4 REQUIRED )
Once this is solved another related error appears:
CMake Error at modules/FindColladaDom.cmake:34 (IF):
if given arguments:
"STREQUAL" "1.4"
Unknown arguments specified
Call Stack (most recent call first):
CMakeLists.txt:47 (FIND_PACKAGE)
This can be solved by adding the following line to the CMakeLists.cmake:
SET(USE_COLLADA_VERSION 1.4)
WrongTrac.