Skip to content

Commit 53b6d19

Browse files
committed
Fix CMake version
1 parent a38500d commit 53b6d19

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
cmake_minimum_required(VERSION 3.5...4.0)
1+
cmake_minimum_required(VERSION 3.5)
22

33
# The top-level CMakeLists.txt file for a project must contain a literal, direct call to the
44
# `project()` command. `project()` sets up some helpful variables that describe source/binary
55
# directories, and the current project version. This is a standard CMake command.
66

7+
project(PluginCollider VERSION 0.4.0)
8+
9+
enable_language(C CXX)
10+
711
if(NOT SC_DIR)
812
set(SC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libs/supercollider)
913
endif()
1014

11-
#enable_language(C CXX)
12-
1315
set(CMAKE_CXX_STANDARD 17)
1416
if(NOT MSVC) # should be enought with line above
1517
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
@@ -52,7 +54,7 @@ else()
5254
FetchContent_Declare(
5355
sndfile
5456
GIT_REPOSITORY "https://github.com/libsndfile/libsndfile"
55-
GIT_TAG 1.2.2
57+
GIT_TAG 52b803f57a1f4d23471f5c5f77e1a21e0721ea0e
5658
GIT_PROGRESS TRUE
5759
GIT_SHALLOW TRUE
5860
)
@@ -163,8 +165,6 @@ endif()
163165

164166
list(APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS c)
165167

166-
project(PluginCollider VERSION 0.4.0)
167-
168168
add_subdirectory(libs/JUCE) # If you've put JUCE in a subdirectory called JUCE
169169

170170
juce_add_plugin(PluginCollider

0 commit comments

Comments
 (0)