mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fix sol2 cmake include failing as a dependency
When using cmake `FetchContent` sol isn't the top level project, so it should use `CMAKE_CURRENT_SOURCE_DIR` instead of `CMAKE_SOURCE_DIR`
This commit is contained in:
parent
430b55a496
commit
3372d4fe9b
|
@ -24,7 +24,7 @@
|
||||||
# # # Required minimum version statement
|
# # # Required minimum version statement
|
||||||
cmake_minimum_required(VERSION 3.16.0)
|
cmake_minimum_required(VERSION 3.16.0)
|
||||||
# # # Project Include - file that is included after project declaration is finished
|
# # # Project Include - file that is included after project declaration is finished
|
||||||
set(CMAKE_PROJECT_INCLUDE "${CMAKE_SOURCE_DIR}/cmake/Includes/Project.cmake")
|
set(CMAKE_PROJECT_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Includes/Project.cmake")
|
||||||
|
|
||||||
# # # project declaration
|
# # # project declaration
|
||||||
project(sol2 VERSION 4.0.0 LANGUAGES CXX C)
|
project(sol2 VERSION 4.0.0 LANGUAGES CXX C)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user