Thanks. This is consistent with the call stack shown in your original
post. That line is always executed so we need to figure out what goes
wrong with it in your particular case. Since you can reproduce it in
mrViewer's configuration that is a good starting point. Try removing
sources and libraries from mrViewer/src/CMakeLists.txt to simplify
it while still reproducing the problem. If you can get rid of most
of the find_package calls at the top and the uses of their results
while still showing the problem then I can likely use that to get
the problem reproduced locally.
Find attached the mrViewer/src/CMakeList.txt file that still fails.
The problem is the dependency on ACESclip library, which is built as
another library within the project. Taking that library out makes the
code parse and start compiling.
Maybe I am setting the two projects wrong, but I wanted to have both
projects compile from the top CMakeLists.txt file, and also be able to
compile the library individually.
--
Gonzalo Garramuño
ggarr...@gmail.com
#
# These are the libraries we will depend on
#
# For window management
FIND_PACKAGE( FLTK2 REQUIRED ) # for window management
#
# List directories for -I options.
#
INCLUDE_DIRECTORIES(
${FLTK2_INCLUDE_DIR}
)
FLTK_WRAP_UI( mrViewer
gui/aviSave.fl
)
SET( SOURCES
${mrViewer_FLTK_UI_SRCS}
)
SET( LIBRARIES
${FLTK2_LIBRARIES}
)
ADD_EXECUTABLE( mrViewer WIN32 ${SOURCES} )
TARGET_LINK_LIBRARIES( mrViewer ${LIBRARIES} ACESclip )
SET_TARGET_PROPERTIES( mrViewer
PROPERTIES
LINK_FLAGS "${LINK_FLAGS}"
)
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake