We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62fbe1f commit 31e18bfCopy full SHA for 31e18bf
CMakeLists.txt
@@ -71,6 +71,9 @@ endif()
71
# CMake does not allow to add dependencies to "builtin" targets like package_source.
72
# We therefore wrap package_source in our own dist target.
73
74
+if("${MOZART_BUILD_DIR}/" MATCHES "${MOZART_DIR}/.*")
75
+ message(WARNING "You are compiling inside the source tree. Generating source tarballs will not work correctly.")
76
+endif()
77
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
78
configure_file(cmake_local/MozartConfigVersion.cmake.in
79
${CMAKE_CURRENT_BINARY_DIR}/cmake_local/MozartConfigVersion.cmake @ONLY)
0 commit comments