diff --git a/CMakeLists.txt b/CMakeLists.txt index ff9adc6..be6fa47 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,6 @@ cmake_policy(SET CMP0091 NEW) set_property(GLOBAL PROPERTY USE_FOLDERS ON) -include(cmake/variables.cmake) include(cmake/version.cmake) desktop_app_parse_version(Telegram/build/version) @@ -22,6 +21,9 @@ project(Telegram ) set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Telegram) +# This has to be included after the call to 'project' otherwise cmake won't work with it +include(cmake/variables.cmake) + include(cmake/nice_target_sources.cmake) include(cmake/target_link_static_libraries.cmake) include(cmake/target_link_frameworks.cmake)