Simplify MaxCtrl version extraction
Instead of using the correct version in in-source builds, a dummy file is copied in place. This removes the need to explicitly include the VERSION.cmake file.
This commit is contained in:
@ -4,7 +4,7 @@ if (BUILD_MAXCTRL)
|
||||
|
||||
if (NPM_FOUND AND NODEJS_FOUND AND NODEJS_VERSION VERSION_GREATER "6.0.0")
|
||||
|
||||
include(configure_version.cmake)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lib/version.js.in ${CMAKE_CURRENT_BINARY_DIR}/lib/version.js @ONLY)
|
||||
|
||||
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/maxctrl/maxctrl
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.sh ${CMAKE_SOURCE_DIR}
|
||||
|
Reference in New Issue
Block a user