Perlmint / glew-cmake

GLEW(https://github.com/nigels-com/glew, source updated nightly) with Cmake and pre-generated sources
Other
234 stars 95 forks source link

install FILES given no DESTINATION! : on WINDOWS #57

Closed hanbollar closed 1 year ago

hanbollar commented 1 year ago

sort of related to https://github.com/Perlmint/glew-cmake/issues/38 but i checked against that and cmake version and system all seem to be fine


right now works on linux just not on windows (running in a github action)

cmake --version: 3.21.3

debug prints:

running: "git" "clone" "https://github.com/Perlmint/glew-cmake.git" "--recursive" "--branch" "glew-cmake-2.2.0" "D:\\a\\engine\\engine\\target\\_deps\\glew"
current_dir: "D:\\a\\engine\\engine\\target\\_deps\\glew\\build"
running: "cmake" "D:\\a\\engine\\engine\\target\\_deps\\glew" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=D:\\a\\engine\\engine\\target\\_deps\\glew\\build\\install" "-Dglew-cmake_BUILD_SHARED=NO" "-DPKG_CONFIG_REPRESENTATIVE_TARGET=libglew_static" "-A" "x64"

actual error from command line:

CMake Error at GeneratePkgConfig.cmake:61 (install):
    install FILES given no DESTINATION!
Call Stack (most recent call first):
    CMakeLists.txt:129 (GeneratePkgConfigFile)

should i be calling the command differently between windows and linux?

thanks in advance @Perlmint ~

hanbollar commented 1 year ago

fixed by running as

running: "cmake" "D:\\a\\engine\\engine\\target\\_deps\\glew" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=D:\\a\\engine\\engine\\target\\_deps\\glew\\build\\install" "-A" "x64"