Skip to content

Commit 371731d

Browse files
authored
Merge pull request #10 from Sarcasm/fix_cmake_install
CMake: fix TodaySchema sample install
2 parents 7ab3a94 + 3183f7b commit 371731d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,14 @@ if(BUILD_TESTS OR UPDATE_SAMPLES)
4848
COMMENT "Generating mock TodaySchema files"
4949
)
5050

51+
# force the generation of samples on the default build target
52+
add_custom_target(update_samples ALL
53+
DEPENDS ${CMAKE_BINARY_DIR}/TodaySchema.cpp
54+
)
55+
5156
if(BUILD_TESTS)
5257
add_library(todaygraphql
53-
TodaySchema.cpp
58+
${CMAKE_BINARY_DIR}/TodaySchema.cpp
5459
Today.cpp)
5560
target_link_libraries(todaygraphql
5661
graphqlservice)

0 commit comments

Comments
 (0)