...
 
Commits (1)
#!/bin/bash
cmake -Bbuild -H. -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_FIND_ROOT_PATH=$PREFIX
cmake --build build --target install
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 792c30c..7ebeb5e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -54,7 +54,9 @@ if (WIN32)
target_link_libraries(yat ws2_32.lib shell32.lib)
endif()
-install (DIRECTORY ../include/yat DESTINATION include/
+install (
+ DIRECTORY ../include/yat
+ DESTINATION include
FILES_MATCHING PATTERN "*.h"
PATTERN "*.tpp"
PATTERN "*.i"
@@ -65,5 +67,5 @@ install (DIRECTORY ../include/yat DESTINATION include/
)
if (UNIX)
- install (TARGETS yat LIBRARY DESTINATION ${LIB_INSTALL_DIR})
+ install (TARGETS yat LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
diff --git a/src/utils/CommandLine.cpp b/src/utils/CommandLine.cpp
index 15ddbf3..a20b037 100644
--- a/src/utils/CommandLine.cpp
+++ b/src/utils/CommandLine.cpp
@@ -111,7 +111,7 @@ void CommandLine::bad_option(const String &strOpt)
{
std::ostringstream oss;
oss << "Unrecognized option '" << strOpt << "'";
- std::cerr << oss << std::endl;
+ std::cerr << oss.str() << std::endl;
show_usage(std::cerr);
throw Exception("BAD_ARGS", oss.str(), "CommandLine::bad_option");
}
package:
name: libyat
version: 1.7.17
source:
git_url: https://github.com/srgblnch/yat
patches:
- libyat.patch
requirements:
build:
- cmake
- {{ compiler('cxx') }}
build:
number: 1
skip: True # [win or osx]
about:
home: http://www2.synchrotron-soleil.fr/controle/docs/yat/yat_html/index.html
license: GPL
license_file: COPYING
summary: YAT is a general purpose C++ library.Its purpose is to provide the developer with useful, easy to use and powerful C++ tools for the common (i.e. classical) developement tasks.