Commit 5b42a88a authored by Max Lyon's avatar Max Lyon

Merge branch 'cmake-no-examples-in-subproject' into 'master'

Do not build examples if we are a subproject. Existing logic was broken.

See merge request !61
parents c10984b0 0424cac9
Pipeline #15774 passed with stages
in 6 minutes
......@@ -494,7 +494,7 @@ configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/Config/config.hh.in"
# of the library are already there
#######################################################################
if(${PROJECT_NAME} MATCHES "CoMISo")
if(${CMAKE_PROJECT_NAME} MATCHES "CoMISo")
set (COMISO_BUILD_EXAMPLES TRUE CACHE BOOL "Build CoMISo Examples")
else()
set (COMISO_BUILD_EXAMPLES FALSE CACHE BOOL "Build CoMISo Examples")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment