Commit 525c741e authored by Berenger Bramas's avatar Berenger Bramas

Add a test in the cmakelist to remove warnings when inastemp is not included...

Add a test in the cmakelist to remove warnings when inastemp is not included by another cmake project (message was: current scope has no parent).
parent 5d367c63
......@@ -169,10 +169,14 @@ configure_file(${INASTEMP_SOURCE_DIR}/CMakeModules/InastempInfo.cmake.in
)
install(FILES ${INASTEMP_BINARY_DIR}/InastempInfo.cmake DESTINATION lib/ )
set(INASTEMP_CXX_FLAGS "${INASTEMP_CXX_FLAGS}" PARENT_SCOPE)
set(INASTEMP_BINARY_DIR "${INASTEMP_BINARY_DIR}" PARENT_SCOPE)
set(INASTEMP_SOURCE_DIR "${INASTEMP_SOURCE_DIR}" PARENT_SCOPE)
set(INASTEMP_INCLUDE_DIR "${INASTEMP_INCLUDE_DIR}" PARENT_SCOPE)
if(${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
# nothing - we are not used by another lib here
else()
set(INASTEMP_CXX_FLAGS "${INASTEMP_CXX_FLAGS}" PARENT_SCOPE)
set(INASTEMP_BINARY_DIR "${INASTEMP_BINARY_DIR}" PARENT_SCOPE)
set(INASTEMP_SOURCE_DIR "${INASTEMP_SOURCE_DIR}" PARENT_SCOPE)
set(INASTEMP_INCLUDE_DIR "${INASTEMP_INCLUDE_DIR}" PARENT_SCOPE)
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment