Fixed the #ifdefs for the api stuff

This commit is contained in:
Jesse Beder
2011-10-18 14:47:35 -05:00
parent 77cc54585f
commit 70e1eb3f9c
5 changed files with 6 additions and 7 deletions

View File

@@ -57,8 +57,6 @@ option(MSVC_STHREADED_RT "MSVC: Build with single-threaded static runtime libs (
###
if(YAML_CPP_BUILD_OLD_API)
set(API_DEFINE "#define YAML_CPP_OLD_API")
else()
set(API_DEFINE "#undef YAML_CPP_OLD_API")
endif()
configure_file(${YAML_CPP_SOURCE_DIR}/include/yaml-cpp/yaml.h.cmake ${YAML_CPP_SOURCE_DIR}/include/yaml-cpp/yaml.h @ONLY)