blob: d61f4c2a20037989deb042b9382efcee01052e12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
diff --git a/lib/comgr/CMakeLists.txt b/lib/comgr/CMakeLists.txt
index 454b830..70e2526 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -90,12 +90,8 @@ if (UNIX)
-Wl,--no-undefined)
endif()
endif()
- # FIXME: Remove when yaml-cpp is removed from the build.
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
else()
list(APPEND AMD_COMGR_PRIVATE_COMPILE_OPTIONS "/W0" "/wd4244")
- # FIXME: Make this private once yaml-cpp is removed from the build.
- add_definitions(-D_HAS_EXCEPTIONS=0)
endif()
# Windows is strict about visibility of exports in shared libraries, so we ask
@@ -179,10 +175,8 @@ install(EXPORT amd_comgr_export
DESTINATION "${AMD_COMGR_PACKAGE_PREFIX}"
FILE "${AMD_COMGR_TARGETS_NAME}")
-set(YAML_CPP_BUILD_TESTS OFF CACHE BOOL "Enable testing" FORCE)
-set(YAML_CPP_BUILD_TOOLS OFF CACHE BOOL "Enable parse tools" FORCE)
-add_subdirectory(yaml-cpp EXCLUDE_FROM_ALL)
-include_directories(./yaml-cpp/include)
+find_package(yaml-cpp REQUIRED)
+include_directories(${YAML_CPP_INCLUDE_DIR})
set(CLANG_LIBS
clangFrontendTool)
|