solstice

Compute collected power and efficiencies of a solar plant
git clone git://git.meso-star.com/solstice.git
Log | Files | Refs | README | LICENSE

commit 09cb3d9fc52d3e023b9753eaf3d6450280471166
parent 20a543abf77d5b86ead1da83ec0581e61e30572c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 23 Nov 2016 15:02:30 +0100

Update the LibYAML CMake Package

Use the debug version of the library in debug

Diffstat:
Mcmake/LibYAMLConfig.cmake | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/cmake/LibYAMLConfig.cmake b/cmake/LibYAMLConfig.cmake @@ -25,7 +25,12 @@ unset(LibYAML_LIBRARY CACHE) unset(LibYAML_LIBRARY_DEBUG CACHE) unset(LibYAML_LIBRARY_RELWITHDEBINFO CACHE) unset(LibYAML_LIBRARY_MINSIZEREL CACHE) -find_library(LibYAML_LIBRARY yaml DOC "Path to library yaml.") +find_library(LibYAML_LIBRARY yaml DOC + "Path to the LibYAML library used during release builds." + PATH_SUFFIXES bin) +find_library(LibYAML_LIBRARY_DEBUG yaml-dbg DOC + "Path to the LibYAML library used during debug builds." + PATH_SUFFIXES bin) # Create the imported library target if(CMAKE_HOST_WIN32) @@ -34,7 +39,10 @@ else(CMAKE_HOST_WIN32) set(_property IMPORTED_LOCATION) endif(CMAKE_HOST_WIN32) add_library(LibYAML SHARED IMPORTED) -set_target_properties(LibYAML PROPERTIES ${_property} ${LibYAML_LIBRARY}) +set_target_properties(LibYAML PROPERTIES + ${_property} ${LibYAML_LIBRARY_DEBUG} + ${_property}_DEBUG ${LibYAML_LIBRARY_DEBUG} + ${_property}_RELEASE ${LibYAML_LIBRARY}) # Check the package include(FindPackageHandleStandardArgs)