You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alembic-1.7.12/lib/Alembic/Abc/ArchiveInfo.cpp:66:29: error: use of undeclared identifier 'kDCCFPSKey'
oDCCFPS = atof( md.get( kDCCFPSKey ).c_str() );
It happens because system-wide include directories are being injected into the global CMake state and thus take precedence over target's include directories (which is actually not even needed because they are already correctly added as TARGET_INCLUDE_DIRECTORIES). Consider the following patch. May also apply to ${Boost_INCLUDE_DIRS}. (See also: #223)
--- CMakeLists.txt.orig+++ CMakeLists.txt@@ -228,14 +225,18 @@ ENDIF()
# IlmBase
INCLUDE("./cmake/AlembicIlmBase.cmake")
-INCLUDE_DIRECTORIES(${ALEMBIC_ILMBASE_INCLUDE_DIRECTORY})+# XXX: do not pollute global state: include directories correctly added+# via TARGET_INCLUDE_DIRECTORIES in the `lib/Alembic/CMakeLists.txt'+#INCLUDE_DIRECTORIES(${ALEMBIC_ILMBASE_INCLUDE_DIRECTORY})
# HDF5
IF (USE_HDF5)
FIND_PACKAGE(ZLIB REQUIRED)
SET(ALEMBIC_WITH_HDF5 "1")
INCLUDE("./cmake/AlembicHDF5.cmake")
- INCLUDE_DIRECTORIES(${HDF5_INCLUDE_DIRS})+ # XXX: do not pollute global state: include directories correctly added+ # via TARGET_INCLUDE_DIRECTORIES in the `lib/Alembic/CMakeLists.txt'+ #INCLUDE_DIRECTORIES(${HDF5_INCLUDE_DIRS})
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DH5_USE_18_API")
ENDIF()
--- lib/Alembic/AbcCoreHDF5/Tests/CMakeLists.txt.orig+++ lib/Alembic/AbcCoreHDF5/Tests/CMakeLists.txt@@ -33,7 +33,8 @@
##
##-*****************************************************************************
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/lib ${PROJECT_BINARY_DIR}/lib)+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/lib ${PROJECT_BINARY_DIR}/lib+ ${HDF5_INCLUDE_DIRS})
SET(CXX_FILES
ArchiveTests.cpp
The text was updated successfully, but these errors were encountered:
It happens because system-wide include directories are being injected into the global CMake state and thus take precedence over target's include directories (which is actually not even needed because they are already correctly added as
TARGET_INCLUDE_DIRECTORIES
). Consider the following patch. May also apply to${Boost_INCLUDE_DIRS}
. (See also: #223)The text was updated successfully, but these errors were encountered: