mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index e1001ee0..be2199ac 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -96,7 +96,7 @@ endif()
|
|
# compile flags
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE True)
|
|
|
|
-list(APPEND GMIC_CXX_COMPILE_FLAGS -Dgmic_core -Dcimg_use_vt100 -Dgmic_is_parallel -Dcimg_use_abort)
|
|
+list(APPEND GMIC_CXX_COMPILE_FLAGS -Dcimg_use_vt100 -Dgmic_is_parallel -Dcimg_use_abort)
|
|
if(APPLE)
|
|
list(APPEND GMIC_CXX_COMPILE_FLAGS -mmacosx-version-min=10.8 -stdlib=libc++ -Wno-error=c++11-narrowing -Wc++11-extensions -fpermissive)
|
|
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
|
@@ -149,7 +149,7 @@ set(CLI_Sources src/gmic.cpp)
|
|
|
|
if(BUILD_LIB)
|
|
add_library(libgmic SHARED ${CLI_Sources})
|
|
- target_compile_options(libgmic PRIVATE ${GMIC_CXX_COMPILE_FLAGS})
|
|
+ target_compile_options(libgmic PRIVATE ${GMIC_CXX_COMPILE_FLAGS} -Dgmic_core)
|
|
set_target_properties(libgmic PROPERTIES SOVERSION "1" OUTPUT_NAME "gmic")
|
|
target_link_libraries(libgmic
|
|
CImg::CImg
|
|
@@ -173,7 +173,7 @@ endif()
|
|
|
|
if(BUILD_LIB_STATIC)
|
|
add_library(libgmicstatic STATIC ${CLI_Sources})
|
|
- target_compile_options(libgmicstatic PRIVATE ${GMIC_CXX_COMPILE_FLAGS})
|
|
+ target_compile_options(libgmicstatic PRIVATE ${GMIC_CXX_COMPILE_FLAGS} -Dgmic_core)
|
|
set_target_properties(libgmicstatic PROPERTIES OUTPUT_NAME "gmic")
|
|
target_link_libraries(libgmicstatic
|
|
CImg::CImg
|