Skip to content

Commit

Permalink
fixed cmake setup when tests are disabled (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
debaetsd authored Dec 29, 2020
1 parent 1a122a6 commit 14bd942
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,9 @@ install (EXPORT OSL_EXPORTED_TARGETS
FILE ${OSL_TARGETS_EXPORT_NAME}
NAMESPACE ${PROJECT_NAME}::)




osl_add_all_tests()

if (${PROJECT_NAME}_BUILD_TESTS AND NOT ${PROJECT_NAME}_IS_SUBPROJECT)
osl_add_all_tests()
endif ()

if (NOT ${PROJECT_NAME}_IS_SUBPROJECT)
include (packaging)
Expand Down

0 comments on commit 14bd942

Please sign in to comment.