Skip to content

Commit

Permalink
Refactor the CMake 3rdparty/Vc-related bits (#1903)
Browse files Browse the repository at this point in the history
* Include the 3rdparty/ dir from top-level
 * Set includes/libs at top-level
 * Remove the inner CMake version requirement
 * Fix deprecated use of CMake's exec_program()
  • Loading branch information
brndnmtthws committed May 13, 2024
1 parent 49a43e4 commit 71d0251
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 82 deletions.
7 changes: 2 additions & 5 deletions 3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# Version 1.4.4
# Vc version 1.4.4
add_subdirectory(Vc)
set(conky_libs ${conky_libs} Vc)
set(conky_includes ${conky_includes} "${CMAKE_CURRENT_SOURCE_DIR}/Vc")

set(conky_libs ${conky_libs} PARENT_SCOPE)
set(conky_includes ${conky_includes} PARENT_SCOPE)
add_subdirectory(toluapp)
2 changes: 1 addition & 1 deletion 3rdparty/Vc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
# cmake_minimum_required(VERSION 3.0)

cmake_policy(SET CMP0028 NEW) # Double colon in target name means ALIAS or IMPORTED target.
cmake_policy(SET CMP0048 NEW) # The ``project()`` command manages VERSION variables.
Expand Down
Loading

0 comments on commit 71d0251

Please sign in to comment.