Skip to content

Commit

Permalink
try to support more build configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jun 1, 2018
1 parent 500335b commit 612a91c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMake/modules/FindFFmpeg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ macro(find_component _component _pkgconfig _library _header)
${PC_${_component}_INCLUDEDIR}
${PC_${_component}_INCLUDE_DIRS}
c:/ffmpeg/include
/opt/ffmpeg/include
PATH_SUFFIXES
ffmpeg
)
Expand Down
6 changes: 4 additions & 2 deletions CMake/modules/FindFaust.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ if(FAUST_FOUND)
if(NOT MSVC AND NOT APPLE)
find_package(OpenSSL REQUIRED)
set(FAUST_LIBRARIES ${FAUST_LIBRARIES} ${CMAKE_DL_LIBS} ${OPENSSL_LIBRARIES} curses z ${LLVM_LDFLAGS} ${LLVM_LIBS} )
elseif(APPLE)
string(REGEX REPLACE " " ";" LLVM_LIBS ${LLVM_LIBS})
set(FAUST_LIBRARIES ${FAUST_LIBRARIES} ${LLVM_LDFLAGS} ${LLVM_LIBS} curses z)
else()
string(REGEX REPLACE " " ";" LLVM_LIBS ${LLVM_LIBS})
# set(FAUST_LIBRARIES ${FAUST_LIBRARIES} ${LLVM_LDFLAGS} ${LLVM_LIBS} )
set(FAUST_LIBRARIES ${FAUST_LIBRARIES} )
set(FAUST_LIBRARIES ${FAUST_LIBRARIES})
endif()
endif()
else()
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
set(CMAKE_MODULE_PATH
"${CMAKE_MODULE_PATH}"
"${CMAKE_CURRENT_SOURCE_DIR}/CMake"
Expand All @@ -17,8 +18,8 @@ endif()
include("${SCORE_CONFIGURATION}")
project(score LANGUAGES C CXX)

cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
cmake_policy(VERSION 3.9)
cmake_policy(SET CMP0025 NEW)

set(SCORE_VERSION_MAJOR 2)
set(SCORE_VERSION_MINOR 0)
Expand Down

0 comments on commit 612a91c

Please sign in to comment.