Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix CMAKE_MODULE_PATH for out-of-source build

jpumca8cd98dd0c0f
diff --git a/toonz/sources/CMakeLists.txt b/toonz/sources/CMakeLists.txt
index c8e6e2d1b..053b0cd81 100644
--- a/toonz/sources/CMakeLists.txt
+++ b/toonz/sources/CMakeLists.txt
@@ -3,7 +3,7 @@ project(OpenToonz)
get_filename_component(SDKROOT ../../thirdparty/ ABSOLUTE)
message("SDK Root:" ${SDKROOT})
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "../cmake")
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake")
if(APPLE)
set(THIRDPARTY_LIBS_HINTS "/usr/local/Cellar/" "/opt/include" ${SDKROOT})
elseif(WIN32)