Skip to content
Permalink
Browse files

CMake: use CMAKE_CURRENT_SOURCE_DIR

Closes #878
  • Loading branch information
underdoeg authored and rdb committed Mar 6, 2020
1 parent 515ce93 commit df6c79f1b31b16ce8d4e2f79bbf9f0014c515394
Showing with 2 additions and 2 deletions.
  1. +2 −2 CMakeLists.txt
@@ -28,8 +28,8 @@ string(REPLACE "$(EFFECTIVE_PLATFORM_NAME)" "" PANDA_CFG_INTDIR "${CMAKE_CFG_INT

# Add generic modules to cmake module path,
# and add Panda3D specific modules to cmake module path
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/macros/")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/macros/")

if(CMAKE_VERSION VERSION_GREATER "3.8")
# When using the Xcode generator, don't append the platform name to the

0 comments on commit df6c79f

Please sign in to comment.
You can’t perform that action at this time.