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")
|
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
|
||||||
ENDIF(APPLE)
|
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(src)
|
||||||
add_subdirectory(data)
|
add_subdirectory(data)
|
||||||
|
#endif()
|
||||||
|
|
||||||
# ================================================================================
|
# ================================================================================
|
||||||
# == Packaging ===================================================================
|
# == Packaging ===================================================================
|
||||||
|
|
|
@ -12,7 +12,10 @@ ADD_CUSTOM_TARGET(Example_data ALL
|
||||||
SOURCES ${Examples_Files}
|
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(
|
INSTALL(
|
||||||
FILES
|
FILES
|
||||||
|
|
Loading…
Reference in New Issue
Block a user