Skip to content

Commit

Permalink
add comment to explain sergeys trick
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf authored and vigsterkr committed Mar 10, 2016
1 parent 24712ab commit 249cfd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/meta/cpp/CMakeLists.txt
Expand Up @@ -7,6 +7,7 @@ FOREACH(META_EXAMPLE ${META_EXAMPLES})
STRING(REGEX REPLACE "/" "-" EXAMPLE_NAME_WITH_DIR ${EXAMPLE_NAME_WITH_DIR})
STRING(REGEX REPLACE ".*/(.*)/.*.sg" "\\1" EXAMPLE_REL_DIR ${META_EXAMPLE})

# meta examples have to be generated before executable and test is added
SET(GENERATED_CPP ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE_REL_DIR}/${EXAMPLE_NAME}.cpp)
SET(GENERATED_CPP_TARGET ${EXAMPLE_NAME_WITH_DIR}-meta-cpp)
SET(GENERATED_CPP_TEST ${EXAMPLE_NAME_WITH_DIR}-meta-cpp-test)
Expand Down

0 comments on commit 249cfd2

Please sign in to comment.