Skip to content

Commit

Permalink
Merge pull request #758 from Qix-/master
Browse files Browse the repository at this point in the history
Fix cable CMake error message when built as a subdirectory
  • Loading branch information
chfast authored Mar 12, 2021
2 parents a83bfb3 + ddc9c0c commit 06dffc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CableBuildType.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ macro(cable_set_build_type)
endif()
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
endif()
elseif(PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) # After the main project().
elseif(PROJECT_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) # After the main project().
message(FATAL_ERROR "cable_set_build_type() must be used before project()")
endif() # Sub-project - silently ignore.
endmacro()

0 comments on commit 06dffc2

Please sign in to comment.