0001097: CMake stops with error: Circular ... <- ... dependency dropped.
This commit is contained in:
parent
83a447f43f
commit
e1222202dd
|
@ -439,8 +439,14 @@ IF(APPLE)
|
|||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
|
||||
ENDIF(APPLE)
|
||||
|
||||
# force build directory to be different to source directory
|
||||
#if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
#MESSAGE(SEND_ERROR "The build directory (${CMAKE_BINARY_DIR}) must be different to the source directory "
|
||||
# "(${CMAKE_SOURCE_DIR}). Please choose another build directory!")
|
||||
#elseif()
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(data)
|
||||
#endif()
|
||||
|
||||
# ================================================================================
|
||||
# == Packaging ===================================================================
|
||||
|
|
|
@ -12,7 +12,10 @@ ADD_CUSTOM_TARGET(Example_data ALL
|
|||
SOURCES ${Examples_Files}
|
||||
)
|
||||
|
||||
fc_copy_sources(Examples "${CMAKE_BINARY_DIR}/data/examples" ${Examples_Files})
|
||||
# 0001097: CMake stops with error "Circular ... <- ... dependency dropped."
|
||||
if(NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
|
||||
fc_copy_sources(Examples "${CMAKE_BINARY_DIR}/data/examples" ${Examples_Files})
|
||||
endif()
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
Loading…
Reference in New Issue
Block a user