diff --git a/CMakeLists.txt b/CMakeLists.txt index 7cc95148..70cbe6ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,11 +18,11 @@ endif() if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA") set(OX_BARE_METAL ON) -endif() - -set(NOSTALGIA_CONAN_PATHS ${CMAKE_SOURCE_DIR}/.conanbuild/conan_paths.cmake) -if(NOT NOSTALGIA_BUILD_TYPE STREQUAL "GBA" AND EXISTS ${NOSTALGIA_CONAN_PATHS}) - include(${NOSTALGIA_CONAN_PATHS}) +else() + set(NOSTALGIA_CONAN_PATHS ${CMAKE_SOURCE_DIR}/.conanbuild/conan_paths.cmake) + if(NOT NOSTALGIA_BUILD_TYPE STREQUAL "GBA" AND EXISTS ${NOSTALGIA_CONAN_PATHS}) + include(${NOSTALGIA_CONAN_PATHS}) + endif() endif() if(OX_BARE_METAL)