|
|
@@ -14,16 +14,16 @@ if(APPLE)
|
|
|
set(EXTRA_LIBRARIES1 portsf pthread aaio ${PA} ${COREAUDIOLIB} ${AUDIOTOOLBOX} ${AULIB} ${CARBONLIB} ${CORESERV} ${EXTRA_LIBRARIES})
|
|
|
else()
|
|
|
if(MINGW OR MSVC)
|
|
|
- set(CMAKE_C_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops")
|
|
|
+ set(CMAKE_C_FLAGS "-O2 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops")
|
|
|
if(MINGW)
|
|
|
- set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops -static-libgcc -static-libstdc++")
|
|
|
+ set(CMAKE_CXX_FLAGS "-O2 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops -static-libgcc -static-libstdc++")
|
|
|
else()
|
|
|
- set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops)
|
|
|
+ set(CMAKE_CXX_FLAGS "-O2 -DWIN32 -D_WIN32 -DUSE_ASIO")
|
|
|
endif()
|
|
|
- link_directories(/usr/local/lib)
|
|
|
+ # link_directories(/usr/local/lib)
|
|
|
find_library(PA NAMES libportaudio.a)
|
|
|
# NB winmm must appear after any module that references it. Yes, that's weird.
|
|
|
- set(EXTRA_LIBRARIES1 dsound winspool portsf ${PA} winmm ${EXTRA_LIBRARIES})
|
|
|
+ set(EXTRA_LIBRARIES1 dsound winspool portsf portaudio winmm ${EXTRA_LIBRARIES})
|
|
|
else()
|
|
|
link_directories (/usr/local/lib)
|
|
|
find_library(PA NAMES libportaudio.a)
|
|
|
@@ -42,6 +42,6 @@ add_executable(paplay paplay.c fmhfuncs.c cmakedummy.cpp)
|
|
|
else()
|
|
|
add_executable(paplay paplay.c fmhfuncs.c )
|
|
|
endif()
|
|
|
-target_link_libraries(paplay ${EXTRA_LIBRARIES1})
|
|
|
+target_link_libraries(paplay libportaudio.a ${EXTRA_LIBRARIES1})
|
|
|
|
|
|
my_install(paplay)
|