File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,15 @@ endif ()
55
55
# directly mimic a non-generated project, and lowers risk that changes
56
56
# to the library structure later on will encounter issues caused by the
57
57
# generative nature of the project.
58
- message ("Generating Traits with OpenAssetIO-TraitGen " )
58
+ message ("Generating Traits with openassetio-traitgen " )
59
59
# Mark the traits source as a configure dependency by copying it to the
60
60
# binary dir, and use that file to run traitgen from.
61
61
# This means if the source traits file is changed, configure will rerun.
62
62
configure_file (${CMAKE_CURRENT_LIST_DIR} /traits.yml ${PROJECT_BINARY_DIR} /traits.yml)
63
63
execute_process (COMMAND openassetio-traitgen ${PROJECT_BINARY_DIR} /traits.yml
64
- -o ${PROJECT_BINARY_DIR} -g cpp)
64
+ -o ${PROJECT_BINARY_DIR} -g cpp
65
+ COMMAND_ERROR_IS_FATAL ANY
66
+ COMMAND_ECHO STDERR)
65
67
66
68
add_library (openassetio-mediacreation INTERFACE )
67
69
# add alias so the project can be used with add_subdirectory
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ v1.0.0-alpha.x
8
8
9
9
- Updated ` openassetio-traitgen ` to ` v1.0.0-alpha.6 ` .
10
10
11
+ ### Bug fixes
12
+
13
+ - CMake will now fail at the configure stage if the
14
+ ` openassetio-traitgen ` command is not available.
15
+ [ #36 ] ( https://github.com/OpenAssetIO/OpenAssetIO-MediaCreation/issues/36 )
16
+
11
17
v1.0.0-alpha.4
12
18
--------------
13
19
You can’t perform that action at this time.
0 commit comments